Title: jenkins notes Subject: As I learn jenkins, these are issues and fixes ------------------------------- 20160624: Developer wants auto tag with specific format The auto-tag after successful build plugin is not free form text. To Auto-tagging a successful build: with - GIT_BRANCH is a String Paramater User enters the branch name when the build Build Step -> Execute Shell: export GIT_REVISION="$(git rev-list --count --all)" export BUILD_TAG="$GIT_BRANCH-$GIT_REVISION" echo $BUILD_TAG > version.txt Build Step -> Update build name x Read from file: version.txt Post-build Actions => Git Publisher x Push only if build Succeeds Tag Tag to push $BUILD_DISPLAY_NAME x Force x Create new tag x Update new tag