I am trying to create a Jenkins pipeline project that uses different Jenkinsbuild files depending on the job parameter. Is there a way to load the Jenkins build file during job execution, for example:
node {
stage("Determine build parameter") {
String jenkinsFile = .....
}
loadSomeHowBuildFile jenkinsFile
}
It would be great that this would work ...
source
share