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]],
                        userRemoteConfigs: [[credentialsId: "foo", url: 
"https://github.com/foo/${JOB_BASE_NAME}.git";]]]
                    )
                }

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.




-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/887c265e-f28a-4784-b93b-02fa68fe95da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to