Concourse pipeline build fails with error hint:
Updates were rejected because the tag already exists in the remote.
demo_app-source
Updated tag 'DEMO_0.0.3' (was fb544ad)
To https://proactionus..com/bitbucket/scm/cacsad/demo.git
! [rejected] DEMO_0.0.3 -> DEMO_0.0.3 (already exists)
error: failed to push some refs to 'https://proactionus.com/bitbucket/scm/cacsad/demo.git'
hint: Updates were rejected because the tag already exists in the remote.
How can I avoid this error message?
It depends on your scenario:
either you see that error on a loop (see "issue 265: Ability to specify maximum number of retries?")
or you have somehow move/reapply an existing tag to a different commit, as described in issue 129
In the second case, make sure to restore the
DEMO_0.0.3to its original place (check where it is in the remoteorigin)