nebula-release-plugin icon indicating copy to clipboard operation
nebula-release-plugin copied to clipboard

`candidate` tasks not failing if tag already exists

Open vojbarzz opened this issue 6 years ago • 0 comments

Hello, today happened that two builds has been triggered simultaneously. Unfortunately the build for older commit won the battle and successfully pushed a tag the second one

build for older commit:

:release (Thread[Task worker for ':',5,main]) started.
:release
Task ':release' is not up-to-date because:
  Task has not declared any outputs.
Tagging repository as v1.0.1-rc.1
Pushing changes in [v1.0.1-rc.1] to origin
The following authentication options are allowed (though they may not be available): [SSHAGENT, HARDCODED, PAGEANT, INTERACTIVE]
ssh-agent available
using agent proxy
:release (Thread[Task worker for ':',5,main]) completed. Took 4.259 secs.

build for newer commit:

:release (Thread[Task worker for ':',5,main]) started.
:release
Task ':release' is not up-to-date because:
  Task has not declared any outputs.
Tagging repository as v1.0.1-rc.1
Pushing changes in [v1.0.1-rc.1] to origin
The following authentication options are allowed (though they may not be available): [HARDCODED, PAGEANT, INTERACTIVE, SSHAGENT]
ssh-agent available
using agent proxy
:release (Thread[Task worker for ':',5,main]) completed. Took 1.134 secs.

Is there any way how to fail a release task if the tag already exists?

vojbarzz avatar Mar 05 '18 14:03 vojbarzz