Handle case of tag not already existing in release repo correctly
This commit is contained in:
parent
77c0c47b5c
commit
483c6ee630
1 changed files with 1 additions and 1 deletions
|
|
@ -137,7 +137,7 @@ def ArrayList<String> maketaglist(String buildstamp, String otherreleasetags) {
|
|||
def boolean releasegittag(String postcommitshacode, String tag) {
|
||||
def boolean tagadded = false
|
||||
// Check if tag exists already
|
||||
def int gitrevparsestatus = sh(script: "git rev-parse \"${tag}\" > \"${gitrevparseoutputfile}\"", returnStatus: true).trim()
|
||||
def int gitrevparsestatus = sh(script: "git rev-parse \"${tag}\" > \"${gitrevparseoutputfile}\"", returnStatus: true)
|
||||
if (gitrevparsestatus == 0) { // Tag exists
|
||||
def existingshacode = readFile(file: gitrevparseoutputfile).trim()
|
||||
if (existingshacode != postcommitshacode) { // If the existing tag is not associated with HEAD
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue