Skip to content
Snippets Groups Projects
Unverified Commit 27be9f50 authored by Maxim Cournoyer's avatar Maxim Cournoyer
Browse files

Jenkinsfile: Partial deployment, follow up.

This is a follow up to commit 4ee93922, which introduced partial
deployments.

The unstash operation also needs to be handled specially, as it may
now fail attempting to unstash an item that could not be stashed
previously.

* Jenkinsfile ('Sign & deploy packages'): Skip target deployment when
it fails to be unstashed.

Change-Id: I59341e4c3bb007125402f4b28979d0e8e963757d
parent a9ae457f
No related branches found
No related tags found
No related merge requests found
......@@ -186,7 +186,12 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration"
steps {
script {
TARGETS.each { target ->
unstash target
try {
unstash target
} catch (err) {
echo "Failed to unstash ${target}, skipping..."
return
}
def distribution = target - ~/^package-/
echo "Deploying packages for ${distribution}..."
sh """scripts/deploy-packages.sh \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment