Created
February 21, 2014 10:12
-
-
Save jimCresswell/9131865 to your computer and use it in GitHub Desktop.
Jenkins config to report a pull request merge product job result back to the Stash UI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| run this script to create a environment variable config file in the workspace containing the SHA of the feature branch merge parent. | |
| # put the feature branch parent of the pull request merge sha into a file variable. | |
| echo parentSha=`git rev-list HEAD^2 -n 1` > gitVariables | |
| at the first build step read in the config file in an inject environment variables step | |
| ${WORKSPACE}/gitVariables | |
| In the Stash notify step click Advanced... and set the commit SHA to | |
| $parentSha |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment