From 873c35ffa4dcd69a838e72386995b423e9f03315 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer <maxim.cournoyer@savoirfairelinux.com> Date: Fri, 22 Oct 2021 15:37:28 -0400 Subject: [PATCH] Jenkinsfile: Fix deploy step. A variable had not been renamed properly, causing an unbound variable exception to be thrown. * Jenkinsfile ('Sign & deploy packages') <target>: Rename variable to ... <distribution> in the later loop. Change-Id: I6c92b3249b537a91cec58438bfbcf8780043d74e --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9429210b..09dc15ee 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -196,7 +196,7 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration_client } def distributionsText = sh( - script: 'find packages/* -maxdepth 1 -type d -print0' + + script: 'find packages/* -maxdepth 1 -type d -print0 ' + '| xargs -0 -n1 basename -z', returnStdout: true).trim() def distributions = distributionsText.split("\0") @@ -204,7 +204,7 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration_client distributions.each { distribution -> echo "Deploying ${distribution} packages..." sh """scripts/deploy-packages.sh \ - --distribution=${target} \ + --distribution=${distribution} \ --keyid="${RING_PUBLIC_KEY_FINGERPRINT}" \ --snapcraft-login="${SNAPCRAFT_KEY}" \ --remote-ssh-identity-file="${SSH_PRIVATE_KEY}" \ -- GitLab