Add Maven publish step to Jenkins pipeline
This commit is contained in:
parent
a7e5a99e01
commit
61f9b09346
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
|
|
@ -6,6 +6,11 @@ pipeline {
|
||||||
sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Publish to Maven') {
|
||||||
|
steps {
|
||||||
|
sh './gradlew publish -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
||||||
|
}
|
||||||
|
}
|
||||||
stage('Archive') {
|
stage('Archive') {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user