Skip to content

Commit

Permalink
another publish channel handling cleanup pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Feb 16, 2024
1 parent 84bc008 commit 6ac95c8
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions jenkins-default-pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ def publishChannel = params.PUBLISH_CHANNEL ?: ""

def buildNumber = env.BUILD_NUMBER ?: "0"

if (publishChannel == "") {
if (gitRef == "stable") {
publishChannel = "default"
} else if (gitRef.startsWith("snapshot") || gitRef.startsWith("support-")) {
publishChannel = gitRef
} else {
publishChannel = "unknown"
if (publish && publishChannel == "") {
if (gitRef == "master") {
publishChannel = "snapshot"
} else if (gitRef.startsWith("support-")) {
publishChannel = "support"
}
}

Expand Down

0 comments on commit 6ac95c8

Please sign in to comment.