Skip to content

Commit

Permalink
CI IT: fix PREMIUM condition
Browse files Browse the repository at this point in the history
  • Loading branch information
loicalbertin committed Feb 28, 2020
1 parent d99bbe1 commit 7f21934
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testdata/ci/runner/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ pipeline {
steps {

script {
env.PREMIUM=false
env.PREMIUM="false"
def scmUrl = scm.getUserRemoteConfigs()[0].getUrl()
println("scmUrl: " + scmUrl)
if (!scmUrl.startsWith("https://github.com/") || params.PREMIUM) {
println("Building a premium version")
env.PREMIUM=true
env.PREMIUM="true"
}

if (env.PREMIUM) {
if (env.PREMIUM == "true") {
env.BUILD_TAGS="premium"
} else {
env.BUILD_TAGS=""
Expand All @@ -47,7 +48,7 @@ pipeline {


def godog_tags = "@CI"
if (!env.PREMIUM) {
if (env.PREMIUM != "true") {
godog_tags += " && ~@premium"
}
if (!params.NIGHTLY) {
Expand Down

0 comments on commit 7f21934

Please sign in to comment.