From b8306a883ad016b5014740bf623638acf2114ac1 Mon Sep 17 00:00:00 2001 From: Patrick Huang Date: Tue, 7 Mar 2017 11:20:41 +1000 Subject: [PATCH] remove restricted startWith method call --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index d7e8525..641d8a0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,8 @@ #!/usr/bin/env groovy -boolean onJenkinsCI = env.JENKINS_URL && env.JENKINS_URL.startWith('https://ci.jenkins.io') +boolean onJenkinsCI = env.JENKINS_URL && + (env.JENKINS_URL == 'https://ci.jenkins.io/' || + env.JENKINS_URL == 'https://ci.jenkins.io') if (onJenkinsCI) { /* running on ci.jenkins.io, we will have `buildPlugin` step provided by: https://github.com/jenkins-infra/pipeline-library */