Skip to content

Commit

Permalink
remove restricted startWith method call
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Mar 7, 2017
1 parent 5793910 commit b8306a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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 */
Expand Down

0 comments on commit b8306a8

Please sign in to comment.