Skip to content

Commit

Permalink
fix(ci): archive artifacts in pkg folder
Browse files Browse the repository at this point in the history
This allows jenkins.copyArts() to work with meta-jobs.

Required for:
status-im/desktop-qa-automation#270

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Nov 7, 2023
1 parent 94953bb commit d2439cd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions ci/Jenkinsfile.combined
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pipeline {
daysToKeepStr: '30',
artifactNumToKeepStr: '10',
))
/* Allows combined build to copy */
copyArtifactPermission('/status-desktop/*')
}

parameters {
Expand Down Expand Up @@ -74,14 +76,16 @@ pipeline {
}
}
post {
always { script { dir('pkg') {
/* Generate sha256 checksums for all artifacts. */
sha = "./${utils.pkgFilename(ext: 'sha256')}"
sh "sha256sum * | tee ../${sha}"
archiveArtifacts('*')
urls['SHA'] = s3.uploadArtifact(sha)
jenkins.setBuildDesc(urls)
} } }
always { script {
dir('pkg') {
/* Generate sha256 checksums for all artifacts. */
sha = "./${utils.pkgFilename(ext: 'sha256')}"
sh "sha256sum * | tee ./${sha}"
urls['SHA'] = s3.uploadArtifact(sha)
jenkins.setBuildDesc(urls)
}
archiveArtifacts('pkg/*')
} }
failure { script {
withCredentials([
string(
Expand Down

0 comments on commit d2439cd

Please sign in to comment.