Skip to content

Commit

Permalink
Jenkinsfile: upload static artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Jul 7, 2022
1 parent 0834b17 commit 850de45
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Jenkinsfile
Expand Up @@ -88,12 +88,14 @@ def genStaticStep(LinkedHashMap pkg, String arch) {
sh 'env|sort'
}
stage("build") {
try {
checkout scm
sh "make REF=$branch TARGETPLATFORM=${pkg.os}/${config.targetarch} static"
} finally {
sh "make clean"
}
checkout scm
sh "make REF=$branch TARGETPLATFORM=${pkg.os}/${config.targetarch} static"
}
stage("upload artifacts") {
archiveArtifacts artifacts: 'static/build/bundles-*.tar.gz', onlyIfSuccessful: true, fingerprint: true
}
stage("clean") {
sh "make clean"
}
}
}
Expand Down

0 comments on commit 850de45

Please sign in to comment.