Update Nexus credentials property names and adjust Jenkins pipeline for Gradle build
This commit is contained in:
parent
b0e04548bd
commit
1719130f69
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
|
|
@ -3,7 +3,12 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Gradle') {
|
stage('Gradle') {
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew build -PalttdSnapshotUsername=$NEXUS_CREDS_USR -PalttdSnapshotPassword=$NEXUS_CREDS_PSW'
|
withCredentials([usernameColonPassword(credentialsId: 'alttd-publish-user', variable: 'USERPASS')]) {
|
||||||
|
sh '''
|
||||||
|
set +x
|
||||||
|
sh './gradlew build -PalttdDevPublishUser=publish -PalttdDevPublishPass=$USERPASS'
|
||||||
|
'''
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Publish to Maven') {
|
stage('Publish to Maven') {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
rootProject.name = "VillagerShopUI"
|
rootProject.name = "VillagerShopUI"
|
||||||
|
|
||||||
val nexusUser = providers.gradleProperty("alttdSnapshotUsername").get()
|
val nexusUser = providers.gradleProperty("alttdDevPublishUser").get()
|
||||||
val nexusPass = providers.gradleProperty("alttdSnapshotPassword").get()
|
val nexusPass = providers.gradleProperty("alttdDevPublishPass").get()
|
||||||
|
|
||||||
dependencyResolutionManagement {
|
dependencyResolutionManagement {
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user