Don't release a component if it is not available in the build job's artifacts
This commit is contained in:
parent
93b2b46cd0
commit
e9ce58fc62
1 changed files with 4 additions and 4 deletions
|
|
@ -95,7 +95,7 @@ def checkoutsourcerepo(buildmeta, String checkoutfolder) {
|
|||
def boolean getcomponentartifacts(toplevelbuildmeta, buildinfo, String repofolder, String tempfolder) {
|
||||
// Copy relevant artifacts to temp folder
|
||||
summaryappend("Artifacts: ")
|
||||
boolean exceptionduringcopyartifacts = false
|
||||
def boolean result = true
|
||||
for (artifactfilter in buildinfo.meta.releaseinfo.releaseitems) {
|
||||
def filterpath = artifactfilter
|
||||
if (buildinfo.offsetpath) {
|
||||
|
|
@ -115,10 +115,10 @@ def boolean getcomponentartifacts(toplevelbuildmeta, buildinfo, String repofolde
|
|||
)
|
||||
} catch (Exception e) {
|
||||
echo "Exception occurred while copying artifacts from ${toplevelbuildmeta.jenkinsbuildinfo.buildjobname}: ${e.getMessage()}"
|
||||
exceptionduringcopyartifacts = true
|
||||
result = false
|
||||
summaryappend("Does not exist:")
|
||||
}
|
||||
if (!exceptionduringcopyartifacts) {
|
||||
if (result) {
|
||||
// Move relevant artifacts from temp folder to release position
|
||||
def originalrootdir = tempfolder + "/" + buildinfo.offsetpath
|
||||
dir(originalrootdir) {
|
||||
|
|
@ -127,7 +127,7 @@ def boolean getcomponentartifacts(toplevelbuildmeta, buildinfo, String repofolde
|
|||
}
|
||||
summaryappend("${artifactfilter},")
|
||||
}
|
||||
return exceptionduringcopyartifacts
|
||||
return result
|
||||
}
|
||||
|
||||
def releasegitadd() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue