Skip to content

Commit

Permalink
[Build] Use bash explicitly in first build step to fix signing
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesWell committed Oct 3, 2024
1 parent 966b76d commit 28ae215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pipeline {
string(credentialsId: 'gpg-passphrase', variable: 'KEYRING_PASSPHRASE')
]) {
xvnc(useXauthority: true) {
sh '''
sh '''#!/bin/bash -x
mavenArgs="clean verify --batch-mode -Dmaven.test.error.ignore=true -Dmaven.test.failure.ignore=true -Dtycho.p2.baselineMode=failCommon"
if [[ ${BRANCH_NAME} == master ]] || [[ ${BRANCH_NAME} =~ m2e-[0-9]+\\.[0-9]+\\.x ]]; then
mvn ${mavenArgs} -Peclipse-sign,its -DDtycho.pgp.signer.bc.secretKeys="${KEYRING}" -Dgpg.passphrase="${KEYRING_PASSPHRASE}"
Expand Down Expand Up @@ -54,7 +54,7 @@ pipeline {
}
steps {
sshagent(['projects-storage.eclipse.org-bot-ssh']) {
sh '''#!/bin/bash
sh '''#!/bin/bash -x
deployM2ERepository()
{
echo Deploy m2e repo to ${1}
Expand Down

0 comments on commit 28ae215

Please sign in to comment.