Hi, I'm getting some unexpected behaviour on a job which is configured to 
build everything except master (branch specifier is */master, choosing 
strategy is Inverse).
It's set to poll for SCM changes, but the command that gets run seems to be 
looking for changes to master:

Using strategy: Inverse
[poll] Last Built Revision: Revision XXX (origin/XXX)
 > git ls-remote -h [email protected]:XXX/XXX.git master # timeout=10
[poll] Latest remote head revision is: XXX
Done. Took 5.9 sec
Changes found


Changes are always found, because the revision that gets built is (correctly) 
not master.
We're using version 2.2.7 of the Git plugin; from a very brief look at the code 
https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitSCM.java
 it seems the choosing strategy isn't taken into consideration when building 
the ls-remote command, but I'm not familiar with the code.

Am I doing something wrong, before I investigate / file a bug report?  Going to 
try using a regex for the branch specifier instead in the meantime.

Thanks for any help!

Leo

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to