diff --git a/Jenkinsfile b/Jenkinsfile index 9429210b502cd1e641bdbd7a66338c3b56d432c7..09dc15ee4efa9532541610f497a70361953e552e 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}" \