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

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
parent 977919b9
Branches
Tags
No related merge requests found
......@@ -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}" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment