Created
September 8, 2015 09:17
-
-
Save jbub/6af56e5967fe6f7148ae to your computer and use it in GitHub Desktop.
Export git build data as a json and store it inside the build dir.
This file contains 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
echo "{\"branch\": \"${GIT_BRANCH#*/}\", \"commit\": \"${GIT_COMMIT}\"}" > "$JENKINS_HOME/jobs/$JOB_NAME/builds/$BUILD_NUMBER/build.json" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment