Skip to content

Commit

Permalink
Merge pull request #7 from jenkinsci/single-Jenkinsfile
Browse files Browse the repository at this point in the history
consolidate two Jenkinsfile for internal CI and ci.jenkins.io
  • Loading branch information
Patrick Huang authored Mar 7, 2017
2 parents 3d52c2a + fe053d8 commit 5793910
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#!/usr/bin/env groovy

boolean onJenkinsCI = env.JENKINS_URL && env.JENKINS_URL.startWith('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 */
buildPlugin()
return
}


@Library('github.com/zanata/zanata-pipeline-library@master')

/* Only keep the 10 most recent builds. */
Expand Down
4 changes: 0 additions & 4 deletions Jenkinsfile_jenkinsci

This file was deleted.

0 comments on commit 5793910

Please sign in to comment.