Lets try this again

This commit is contained in:
Telesphoreo 2022-04-10 00:12:44 -05:00
parent d16aa6de4c
commit 067094130f
2 changed files with 17 additions and 15 deletions

4
Jenkinsfile vendored
View File

@ -8,7 +8,7 @@ pipeline {
} }
} }
} }
/*stage("publish") { stage("publish") {
when { when {
branch "master" branch "master"
} }
@ -19,7 +19,7 @@ pipeline {
} }
} }
} }
}*/ }
} }
post { post {
always { always {

View File

@ -28,6 +28,7 @@ allprojects {
options.encoding = "UTF-8" options.encoding = "UTF-8"
} }
afterEvaluate { project ->
publishing { publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {
@ -38,7 +39,7 @@ allprojects {
maven { maven {
def releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases/") def releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases/")
def snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots/") def snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots/")
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl url = version.endsWith('-SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials { credentials {
username = System.getenv("plexUser") username = System.getenv("plexUser")
password = System.getenv("plexPassword") password = System.getenv("plexPassword")
@ -46,6 +47,7 @@ allprojects {
} }
} }
} }
}
} }
task copyJars(type: Copy, dependsOn: subprojects.jar) { task copyJars(type: Copy, dependsOn: subprojects.jar) {