Jenkins dsl pipeline def variable Jenkins dsl pipeline def variable jenkins jenkins

Jenkins dsl pipeline def variable


Try this..

def var1 = readfile('file1').trim()def var2 = readfile('file2').trim()def var3 = readfile('file3').trim()def concatVar = "${var1} + '_' + ${var2} + '_' + ${var3}"println ${concatVar}

I found that readFile does not clip off the end of line character