Skip to content

Instantly share code, notes, and snippets.

@int128
Created December 6, 2016 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save int128/99cce8fd0cc22752d7dc69aded297641 to your computer and use it in GitHub Desktop.
Save int128/99cce8fd0cc22752d7dc69aded297641 to your computer and use it in GitHub Desktop.
How to handle GitHub Webook on Tag pushed on Jenkins
  • Refspec: +refs/tags/*:refs/remotes/origin/tags/*
  • Branch Specifier: */tags/*
export TAG_NAME="$(git describe --tags)"
rm -fr .git
[ "$TAG_NAME" ] && ./gradlew publish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment