Reputation: 3053
I have a Jenkins build configured to run on each push, I want to tag the latest push with a latest
tag for a process that runs on pushes with that tag only.
I've tried to create a post-build event that updates a latest
tag on the origin
remote name, but that works only the first time, next push will cause a Updates were rejected because the tag already exists in the remote.
error.
Here's my configuration in Jenkins:
Any ideas on how to remove the old latest
tag and move it to the newly pushed version on Jenkins?
Upvotes: 2
Views: 735