mirror of
https://github.com/plexusorg/Plex.git
synced 2026-06-06 06:16:55 +00:00
Try to automate Jenkins publishing
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user