Check for changes occurring

This commit is contained in:
Dan Hawkins 2018-11-30 17:36:43 +00:00
commit 2dcb050ab3

View file

@ -119,9 +119,12 @@ def boolean checkforchange(buildmeta, previousreleasemeta) {
def ArrayList<String> maketaglist(String buildstamp, String otherreleasetags) {
ArrayList<String> taglist = new ArrayList<String>()
taglist.add(buildstamp)
taglist.add(buildstamp.trim())
echo "Taglist: ${taglist} size: ${taglist.size()}"
ArrayList<String> othertaglist = otherreleasetags.trim().split(',')
echo "othertaglist: ${othertaglist} size: ${othertaglist.size()}"
for (othertagitem in othertaglist) {
taglist.add(othertagitem.trim())
}
@ -178,7 +181,7 @@ def releasegitpush(String dryrunpush ) {
def gitrelease(buildmeta, previousreleasemeta, String releaserepo, String otherreleasetags, String dryrunpush) {
summaryappend(" Git operations: ")
def String buildstamp = buildmeta.buildstampinfo.buildstamp
def String buildstamp = buildmeta.buildstampinfo.buildstamp.trim()
dir(releaserepo) {
def String precommitshacode = sh(script: "git rev-parse --verify HEAD", returnStdout: true).trim()
echo "Pre commit sha code: ${precommitshacode}"