New answers tagged


I'm not really sure I understand your question, but you can execute arbitrary Groovy inside of a script block, so you can do just about anything within script. For example, here is my interpretation of what you are asking for: stage ('Execute jobs') { steps { node('node1') { script { parallel_jobs = [:] ...


You can use the trim parameter: string(name: 'some parameter', trim: true)


Could credentials binding plugin be the answer? The idea is to add svn user and password to Jenkins credentials store and then use it in the pipeline. withCredentials([ usernamePassword( credentialsId: 'mySvnLogin', usernameVariable: 'USER', passwordVariable: 'PASSWORD')]) { sh ''' svn ls <url> --non-interactive --...

Top 50 recent answers are included