Try to automate Jenkins publishing

This commit is contained in:
Telesphoreo 2022-03-31 02:01:29 -05:00
parent 20fe89edbc
commit f0a05a8256

View file

@ -160,3 +160,15 @@ task publishRelease {
task publishSnapshot {
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
}
task jenkinsPublish {
if (System.getenv("plex_repo_user") == "jenkins") {
if (System.getenv("plex_repo_user") != null && System.getenv("plex_repo_user") == "jenkins") {
if (!getVersion().toString().toLowerCase().endsWith("-snapshot")) {
dependsOn(publishPlexReleasesPublicationToMavenRepository)
} else {
dependsOn(publishPlexSnapshotsPublicationToMaven2Repository)
}
}
}
}