updated Jenkinsfile
nclazz/web-service-archetype/pipeline/head This commit looks good Details

master
Niclas Thobaben 2021-12-25 18:35:35 +01:00
parent 20de22e00f
commit 094f55bc44
2 changed files with 4 additions and 4 deletions

4
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
}
stage('Build project') {
steps {
withCredentials([usernamePassword(credentialsId: 'jenkins_nexus', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
withCredentials([usernamePassword(credentialsId: 'jenkins_nexus', usernameVariable: 'NEXUS_USER', passwordVariable: 'NEXUS_PASSWORD')]) {
sh 'mvn clean install -B -s settings.xml'
}
@ -29,7 +29,7 @@ pipeline {
}
}
steps {
withCredentials([usernamePassword(credentialsId: 'jenkins_nexus', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
withCredentials([usernamePassword(credentialsId: 'jenkins_nexus', usernameVariable: 'NEXUS_USER', passwordVariable: 'NEXUS_PASSWORD')]) {
sh 'mvn deploy -Dnexus.user=${USERNAME} -Dnexus.password=${PASSWORD} -B -s settings.xml'
}
script {

View File

@ -15,8 +15,8 @@
<servers>
<server>
<id>nexus.nclazz.de</id>
<username>${nexus.user}</username>
<password>${nexus.password}</password>
<username>${NEXUS_USER}</username>
<password>${NEXUS_PASSWORD}</password>
</server>
</servers>
<proxies />