Move same git tag to the latest push using Jenkins Move same git tag to the latest push using Jenkins jenkins jenkins

Move same git tag to the latest push using Jenkins


Just execute a script before you tag which deletes the previous latest tag:

# delete local tag 'latest'git tag -d latest# delete remote tag 'latest' (eg, GitHub version too)git push origin :refs/tags/latest

reference here.