From 79d10b52165b631d0c574737e9bfaa9e04ce8a3c Mon Sep 17 00:00:00 2001 From: Hannes Wellmann Date: Thu, 3 Oct 2024 14:46:00 +0200 Subject: [PATCH] [Build] Use bash explicitly in first build step to fix signing See https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/issues/5061 --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5d9c29dd..ca30d6ba2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}" @@ -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}