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') {
|
stage('Test') {
|
||||||
steps {
|
steps {
|
||||||
withGradle {
|
withGradle {
|
||||||
|
|
@ -30,7 +30,7 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
withGradle {
|
withGradle {
|
||||||
|
|
|
||||||
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue