Don't release a component if it is not available in the build job's artifacts

This commit is contained in:
Dan Hawkins 2019-07-19 14:09:53 +01:00
commit 93b2b46cd0

View file

@ -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: ")
bool exceptionduringcopyartifacts = false
boolean exceptionduringcopyartifacts = false
for (artifactfilter in buildinfo.meta.releaseinfo.releaseitems) {
def filterpath = artifactfilter
if (buildinfo.offsetpath) {
@ -116,7 +116,7 @@ def boolean getcomponentartifacts(toplevelbuildmeta, buildinfo, String repofolde
} catch (Exception e) {
echo "Exception occurred while copying artifacts from ${toplevelbuildmeta.jenkinsbuildinfo.buildjobname}: ${e.getMessage()}"
exceptionduringcopyartifacts = true
summaryappend("Does not exist: ${artifactfilter},")
summaryappend("Does not exist:")
}
if (!exceptionduringcopyartifacts) {
// Move relevant artifacts from temp folder to release position