Update publishing user and URL
This commit is contained in:
parent
cee1709d00
commit
1ea50a3d89
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -14,10 +14,10 @@ pipeline {
|
||||||
}
|
}
|
||||||
stage('Publish to Maven') {
|
stage('Publish to Maven') {
|
||||||
steps {
|
steps {
|
||||||
withCredentials([usernamePassword(credentialsId: 'alttd-publish-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
withCredentials([usernamePassword(credentialsId: 'alttd-snapshot-user', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
|
||||||
sh '''
|
sh '''
|
||||||
chmod +x gradlew
|
chmod +x gradlew
|
||||||
./gradlew publish -PalttdDevPublishUser=$USERNAME -PalttdDevPublishPass=$PASSWORD
|
./gradlew publish -PalttdSnapshotUsername=$USERNAME -PalttdSnapshotPassword=$PASSWORD
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,10 @@ publishing {
|
||||||
repositories{
|
repositories{
|
||||||
maven {
|
maven {
|
||||||
name = "nexus"
|
name = "nexus"
|
||||||
url = uri("https://repo.alttd.com/repository/alttd-snapshot/")
|
url = uri("https://repo.alttd.com/repository/alttd/")
|
||||||
credentials {
|
credentials {
|
||||||
username = project.property("alttdDevPublishUser") as String
|
username = project.property("alttdSnapshotUsername") as String
|
||||||
password = project.property("alttdDevPublishPass") as String
|
password = project.property("alttdSnapshotPassword") as String
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user