Fixing nexus credential issue
This commit is contained in:
parent
aaa0a7cd86
commit
1936957514
2 changed files with 7 additions and 4 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -22,7 +22,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
||||
stage('Test') {
|
||||
steps {
|
||||
withGradle {
|
||||
|
|
@ -30,7 +30,7 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
withGradle {
|
||||
|
|
|
|||
|
|
@ -11,8 +11,11 @@ publishing {
|
|||
url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl
|
||||
|
||||
credentials {
|
||||
username project.hasProperty('mavenCentralUsername') ? mavenCentralUsername : "unknown"
|
||||
password project.hasProperty('mavenCentralPassword') ? mavenCentralPassword : "unknown"
|
||||
def repositoryUsername = project.hasProperty('mavenCentralUsername') ? mavenCentralUsername : "unknown"
|
||||
project.logger.info("Setting Maven Central Credentials: ${repositoryUsername}")
|
||||
|
||||
username(repositoryUsername)
|
||||
password( project.hasProperty('mavenCentralPassword') ? mavenCentralPassword : "unknown")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue