Merge commit 'f4d8ff7a53'
This commit is contained in:
commit
cdb667e05f
1 changed files with 7 additions and 5 deletions
|
|
@ -32,7 +32,8 @@ def preconditions() {
|
||||||
|
|
||||||
def setunstable(String reason) {
|
def setunstable(String reason) {
|
||||||
markunstable = true
|
markunstable = true
|
||||||
unstablereason = reason
|
unstablereason += reason + "\n"
|
||||||
|
echo "Marked build as unstable: Reason: ${reason}"
|
||||||
}
|
}
|
||||||
|
|
||||||
def summaryappend(String summary) {
|
def summaryappend(String summary) {
|
||||||
|
|
@ -157,14 +158,15 @@ def boolean checkforchange(buildmeta, previousreleasemeta) {
|
||||||
return changed
|
return changed
|
||||||
}
|
}
|
||||||
|
|
||||||
def ArrayList<String> maketaglist(String buildstamp, String otherreleasetags) {
|
def ArrayList<String> maketaglist(buildmeta, String buildstamp, String otherreleasetags) {
|
||||||
def ArrayList<String> taglist = new ArrayList<String>()
|
def ArrayList<String> taglist = new ArrayList<String>()
|
||||||
taglist.add(buildstamp)
|
taglist.add(buildstamp)
|
||||||
|
|
||||||
def ArrayList<String> othertaglist = otherreleasetags.split(',')
|
def ArrayList<String> othertaglist = otherreleasetags.split(',')
|
||||||
for (othertagitem in othertaglist) {
|
for (othertagitem in othertaglist) {
|
||||||
if (othertagitem?.trim()) {
|
if (othertagitem?.trim()) {
|
||||||
taglist.add(othertagitem.trim())
|
def componentothertagitem = "${othertagitem.trim()}_${buildmeta.productinfo.productname}_${buildmeta.productinfo.subcomponentname}"
|
||||||
|
taglist.add(componentothertagitem)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return taglist
|
return taglist
|
||||||
|
|
@ -288,7 +290,7 @@ def gitrelease(buildmeta, previousreleasemeta, String releaserepo, String source
|
||||||
def String postcommitshacode = sh(script: "git rev-parse --verify HEAD", returnStdout: true).trim()
|
def String postcommitshacode = sh(script: "git rev-parse --verify HEAD", returnStdout: true).trim()
|
||||||
echo "Post commit sha code: ${postcommitshacode}"
|
echo "Post commit sha code: ${postcommitshacode}"
|
||||||
|
|
||||||
ArrayList<String> taglist = maketaglist(buildstamp, otherreleasetags)
|
ArrayList<String> taglist = maketaglist(buildmeta, buildstamp, otherreleasetags)
|
||||||
def tagadded = releasegittags(postcommitshacode, taglist)
|
def tagadded = releasegittags(postcommitshacode, taglist)
|
||||||
|
|
||||||
if (changed || tagadded) {
|
if (changed || tagadded) {
|
||||||
|
|
@ -300,7 +302,7 @@ def gitrelease(buildmeta, previousreleasemeta, String releaserepo, String source
|
||||||
def String buildsha = buildmeta.gitinfo.gitrevision
|
def String buildsha = buildmeta.gitinfo.gitrevision
|
||||||
|
|
||||||
if (buildsha) {
|
if (buildsha) {
|
||||||
def ArrayList<String> srctaglist = maketaglist(srcbuildstamp, otherreleasetags)
|
def ArrayList<String> srctaglist = maketaglist(buildmeta, srcbuildstamp, otherreleasetags)
|
||||||
def tagadded = sourcegittags(buildsha, srctaglist)
|
def tagadded = sourcegittags(buildsha, srctaglist)
|
||||||
if (tagadded) {
|
if (tagadded) {
|
||||||
sourcegitpush(dryrunpush)
|
sourcegitpush(dryrunpush)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue