Check for changes occurring

This commit is contained in:
Dan Hawkins 2018-11-30 16:48:17 +00:00
commit a5703babe0

View file

@ -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