Fixing version from commandline
This commit is contained in:
parent
99f2f82c15
commit
9ed13e1888
2 changed files with 2 additions and 2 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
|
@ -37,7 +37,7 @@ pipeline {
|
|||
configFileProvider([configFile(fileId: '70cb2022-0bc2-4b25-98a4-e1526dbf2735', variable: 'GRADLE_PROPERTIES')]) {
|
||||
sh './gradlew ${gradleParams} publishToMavenLocal'
|
||||
|
||||
sh './gradlew ${gradleParams} -Prelease=true -PcustomProperties=${GRADLE_PROPERTIES} publish'
|
||||
sh './gradlew ${gradleParams} -PdoRelease -PcustomProperties=${GRADLE_PROPERTIES} publish'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ publishing {
|
|||
maven {
|
||||
def snapshotsRepoUrl = 'http://oss.sonatype.org/content/repositories/snapshots/'
|
||||
def releaseRepoUrl = 'http://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
||||
url = project.hasProperty('release') ? releaseRepoUrl : snapshotsRepoUrl
|
||||
url = project.hasProperty('doRelease') ? releaseRepoUrl : snapshotsRepoUrl
|
||||
|
||||
if (project.hasProperty('mavenCentralUsername') && project.hasProperty('mavenCentralPassword')) {
|
||||
credentials {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue