Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
radtriste committed Jan 20, 2022
1 parent cedaf85 commit e3132c1
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .ci/jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,14 @@ pipeline {
}
unsuccessful {
script {
pullrequest.postComment(util.getMarkdownTestSummary('PR', '', "${BUILD_URL}", 'GITHUB'))
def additionalInfo = ''
if (getBuildFailedImages()){
additionalInfo += 'Build failures on those images:\n'
getBuildFailedImages().each {
additionalInfo += "- ${it}\n"
}
}
pullrequest.postComment(util.getMarkdownTestSummary('PR', additionalInfo, "${BUILD_URL}", 'GITHUB'))
}
}
}
Expand Down Expand Up @@ -153,6 +160,10 @@ void registerBuildFailedImage(String imageName) {
}
}

List getBuildFailedImages() {
return BUILD_FAILED_IMAGES
}

void initWorkspace(String image) {
sh "mkdir -p ${getWorkspacePath(image)}"
sh "rsync -av --progress . ${getWorkspacePath(image)} --exclude workspaces"
Expand Down

0 comments on commit e3132c1

Please sign in to comment.