updated Jenkinsfile
nclazz/web-service-archetype/pipeline/head This commit looks good
Details
nclazz/web-service-archetype/pipeline/head This commit looks good
Details
parent
20de22e00f
commit
094f55bc44
|
@ -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 {
|
||||
|
|
|
@ -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 />
|
||||
|
|
Loading…
Reference in New Issue