Check for changes occurring
This commit is contained in:
parent
1926785685
commit
e1671aba54
1 changed files with 5 additions and 2 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue