Skip to content

Instantly share code, notes, and snippets.

@kastetkot
Forked from bcomnes/Jenkinsfile
Created August 12, 2022 08:45
Show Gist options
  • Save kastetkot/c6854e46e4e7b3f3fde7eae0fb239439 to your computer and use it in GitHub Desktop.
Save kastetkot/c6854e46e4e7b3f3fde7eae0fb239439 to your computer and use it in GitHub Desktop.
Git env vars you might need in jenkins
/*
Jenkins ENV Reference:
env.GIT_COMMIT: the commit sha of the current build
env.BRANCH_NAME: the branch name OR tag name of the current build, when it exists
env.GIT_BRANCH: same as BRANCH_NAME
env.TAG_NAME: the tag name of the current build, when it exists
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment