fix(ci): archive artifacts in pkg folder

This allows jenkins.copyArts() to work with meta-jobs.

Required for:
https://github.com/status-im/desktop-qa-automation/pull/270

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-11-06 17:25:24 +01:00
parent 94953bb925
commit d2439cdf15
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 12 additions and 8 deletions

View File

@ -18,6 +18,8 @@ pipeline {
daysToKeepStr: '30',
artifactNumToKeepStr: '10',
))
/* Allows combined build to copy */
copyArtifactPermission('/status-desktop/*')
}
parameters {
@ -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(