Hi, Background
Our Jenkins build job uses Git with a default branch specifier set to 'develop'. A build input parameter "OVERRIDE_BRANCH" allows the user to specify an alternative Git branch. A Groovy script build step looks to see if $OVERRIDE_BRANCH has been specified, and if so, it checks out that branch for the build. Problem When I run a build, it runs successfully. However, when I navigate to the Jenkins build output page, it lists the Git code Changes for the develop branch. This makes sense, because Jenkins has no way of knowing that our Groovy script changed the branch. Question Is there a way in Jenkins to tell it that the Git branch (and hence corresponding Git revision) has changed? NOTE I know one "solution" would be to change the Git default branch specifier to the $OVERRIDE_BRANCH parameter; however, that is not desirable for some other reasons. Long story... Thanks for reading this and any help. Bob *** *** *** This message contains information which may be confidential and privileged. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received the message in error, please advise the sender by reply e-mail and delete the message. -- 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 jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.