Hey,
I am having _so_ much trouble getting what I thought would be the simplest workflow working.
All I am trying to do is have GitHub trigger a Jenkins build on a push to various branches.
I was using the git() step initially but I couldn't seem to get it to use multiple branches, so I swapped to the extended syntax of:
dir(JOB_BASE_NAME) {
checkout([$class: 'GitSCM',
branches: [[name: GIT_BRANCH]],
)
}
With GIT_BRANCH set to use the same syntax that freestyle options allowed (wildcard, regex and such) I made a little progress with manual builds, but I'm hitting a brick wall with the polling logic/detection. When I push the polling log shows:
ERROR: no such computer <old slave name>
I'm not sure what its trying to do but it seems like its trying to do something with the polling logic on a slave? (our slaves are dynamic EC2 based so can vanish when not used)
What am I missing? :( All I want is for Jenkins to build whatever branch GitHub tells it was pushed to.
Thanks.