Check for changes occurring
This commit is contained in:
parent
476c771144
commit
6494069af5
1 changed files with 4 additions and 3 deletions
|
|
@ -125,6 +125,7 @@ def ArrayList<String> maketaglist(String buildstamp, String otherreleasetags) {
|
|||
for (othertagitem in othertaglist) {
|
||||
taglist.add(othertagitem.trim())
|
||||
}
|
||||
echo "Taglist: ${taglist}"
|
||||
return taglist
|
||||
}
|
||||
|
||||
|
|
@ -136,16 +137,16 @@ def boolean releasegittag(String postcommitshacode, String tag) {
|
|||
if (existingshacode != postcommitshacode) { // If the existing tag is not associated with HEAD
|
||||
// This is a problem - The tag is already at another position in git repo
|
||||
setunstable("The tag ${tag} has been used at another commit other than HEAD - You must decide what to do with it - Not good practice to delete it or move it")
|
||||
summaryappend("(${tag} - Could not add!),")
|
||||
summaryappend("(${tag} - Could not add!)")
|
||||
}
|
||||
else {
|
||||
summaryappend("(${tag} - Already added),")
|
||||
summaryappend("(${tag} - Already added)")
|
||||
}
|
||||
}
|
||||
else { // If sha code does not exist already
|
||||
// Tag
|
||||
sh("git tag ${tag}")
|
||||
summaryappend("(${tag}),")
|
||||
summaryappend("(${tag})")
|
||||
tagadded = true
|
||||
}
|
||||
return tagadded
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue