diff --git a/Jenkinsfile b/Jenkinsfile index 8faf17734..86bb33b61 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ node { cesFqdn = "ecosystem.cloudogu.net"; cesUrl = "https://${cesFqdn}"; - credentials = usernamePassword(credentialsId: 'system', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME'); + credentials = usernamePassword(credentialsId: 'scmCredentials', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME'); stage('Checkout') { checkout scm @@ -49,9 +49,7 @@ def credentials; void mvn(String args) { writeSettingsXml() - withEnv(["JAVA_HOME=${tool 'jdk8u112'}"]) { - sh "./mvnw -s settings.xml --batch-mode -V -U -e -Dsurefire.useFile=false ${args}" - } + sh "./mvnw -s settings.xml --batch-mode -V -U -e -Dsurefire.useFile=false ${args}" sh 'rm -f settings.xml' } @@ -71,10 +69,10 @@ void writeSettingsXml() { ${cesFqdn} ${cesFqdn} Central Mirror - ${cesFqdn}/nexus/content/groups/public/ + ${cesUrl}/nexus/content/groups/public central """ } -} \ No newline at end of file +}