Fixing nexus credential issue

This commit is contained in:
Ziver Koc 2024-09-19 23:00:00 +02:00
parent aaa0a7cd86
commit 1936957514
2 changed files with 7 additions and 4 deletions

4
Jenkinsfile vendored
View file

@ -22,7 +22,7 @@ pipeline {
} }
} }
} }
/*
stage('Test') { stage('Test') {
steps { steps {
withGradle { withGradle {
@ -30,7 +30,7 @@ pipeline {
} }
} }
} }
*/
stage('Deploy') { stage('Deploy') {
steps { steps {
withGradle { withGradle {

View file

@ -11,8 +11,11 @@ publishing {
url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl
credentials { credentials {
username project.hasProperty('mavenCentralUsername') ? mavenCentralUsername : "unknown" def repositoryUsername = project.hasProperty('mavenCentralUsername') ? mavenCentralUsername : "unknown"
password project.hasProperty('mavenCentralPassword') ? mavenCentralPassword : "unknown" project.logger.info("Setting Maven Central Credentials: ${repositoryUsername}")
username(repositoryUsername)
password( project.hasProperty('mavenCentralPassword') ? mavenCentralPassword : "unknown")
} }
} }
} }