diff --git a/Jenkinsfile b/Jenkinsfile index 357b6bf..493e479 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,17 +13,17 @@ def grouper_src_branch = "GROUPER_RELEASE_${git_tag}" node('docker') { if (git_tag ==~ tag_pattern ) { + environment { + JAVA_HOME='/home/centos/agent/tools/hudson.model.JDK/Corretto-JDK8/amazon-corretto-8.322.06.2-linux-x64' + } stage("PgpImport") { withCredentials([file(credentialsId: gpg_cred_id, variable: 'GPG_KEYS')]) { sh 'gpg --version' sh 'gpg --keyring=pubring.gpg --no-default-keyring --import $GPG_KEYS || true' + sh 'echo $JAVA_HOME' sh 'java --version' - sh 'ls /tmp' } } - environment { - JAVA_HOME='/home/centos/agent/tools/hudson.model.JDK/Corretto-JDK8/amazon-corretto-8.322.06.2-linux-x64' - } stage("Checkout") { checkout_result = checkout([ $class: 'GitSCM',