diff --git a/Jenkinsfile b/Jenkinsfile index 721adf17..f84176e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -68,7 +68,7 @@ pipeline { steps { script { docker.withRegistry('', 'hub.docker.com-springbuildmaster') { - docker.image('adoptopenjdk/openjdk8:latest').inside("-u root -v /tmp:/tmp") { + docker.image('adoptopenjdk/openjdk8:latest').inside("--name ${env.HOSTNAME}One -u root -v /tmp:/tmp") { withCredentials([file(credentialsId: 'spring-signing-secring.gpg', variable: 'SIGNING_KEYRING_FILE')]) { withCredentials([string(credentialsId: 'spring-gpg-passphrase', variable: 'SIGNING_PASSWORD')]) { withCredentials([usernamePassword(credentialsId: 'oss-token', passwordVariable: 'OSSRH_PASSWORD', usernameVariable: 'OSSRH_USERNAME')]) { @@ -93,7 +93,7 @@ pipeline { steps { script { docker.withRegistry('', 'hub.docker.com-springbuildmaster') { - docker.image('adoptopenjdk/openjdk8:latest').inside("-u root -v /tmp:/tmp") { + docker.image('adoptopenjdk/openjdk8:latest').inside("--name ${env.HOSTNAME}Two -u root -v /tmp:/tmp") { withCredentials([file(credentialsId: 'docs.spring.io-jenkins_private_ssh_key', variable: 'DEPLOY_SSH_KEY')]) { try { sh "ci/deployDocs.sh" diff --git a/ci/deployArtifacts.sh b/ci/deployArtifacts.sh index a08c0204..330d1f72 100755 --- a/ci/deployArtifacts.sh +++ b/ci/deployArtifacts.sh @@ -2,6 +2,8 @@ set -eou pipefail +echo "Running on host [$HOSTNAME]" + # User ID 1001 is "jenkins" # Group ID 1001 is "jenkins" # Syntax: `chown -R userId:groupId .` diff --git a/ci/deployDocs.sh b/ci/deployDocs.sh index 885c43a4..89986c38 100755 --- a/ci/deployDocs.sh +++ b/ci/deployDocs.sh @@ -2,6 +2,8 @@ set -eou pipefail +echo "Running on host [$HOSTNAME]" + # User ID 1001 is "jenkins" # Group ID 1001 is "jenkins" # Syntax: `chown -R userId:groupId .`