Add Maven publish step to Jenkins pipeline
This commit is contained in:
1 parent
a7e5a99e01
commit
61f9b09346
1 file changed
+5
Vendored
+5
@@ -6,6 +6,11 @@ pipeline {
|
||||
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') {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
|
||||
|
||||
Reference in new issue
Block a user