Update Nexus credentials property names and Jenkins pipeline for publishing
This commit is contained in:
parent
4e1c813a42
commit
63bdbdaab1
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
|
@ -8,7 +8,12 @@ pipeline {
|
|||
}
|
||||
stage('Publish to Maven') {
|
||||
steps {
|
||||
sh './gradlew publish -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
||||
withCredentials([usernameColonPassword(credentialsId: 'alttd-publish-user', variable: 'USERPASS')]) {
|
||||
sh '''
|
||||
set +x
|
||||
sh './gradlew publish -PalttdDevPublishUser=publish -PalttdDevPublishPass=$USERPASS'
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Archive') {
|
||||
|
|
|
|||
|
|
@ -28,8 +28,8 @@ publishing {
|
|||
name = "nexus"
|
||||
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
||||
credentials {
|
||||
username = project.property("alttdSnapshotUsername") as String
|
||||
password = project.property("alttdSnapshotPassword") as String
|
||||
username = project.property("alttdDevPublishUser") as String
|
||||
password = project.property("alttdDevPublishPass") as String
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user