Skip to content

Commit

Permalink
CI IT: Build premium on scmUrl or param
Browse files Browse the repository at this point in the history
  • Loading branch information
loicalbertin committed Feb 28, 2020
1 parent 59977fd commit d99bbe1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions testdata/ci/runner/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ pipeline {
steps {

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

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


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

0 comments on commit d99bbe1

Please sign in to comment.