Skip to content

Commit

Permalink
use ci repo as shared jenkins library
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed Oct 6, 2017
1 parent 0bdd723 commit 8f2a221
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
#!/bin/env groovy

def clone (repo_url, git_ref = "master") {
checkout(
poll: false,
scm: [
$class: 'GitSCM',
branches: [[name: git_ref]],
extensions: [[$class: 'CleanBeforeCheckout']],
userRemoteConfigs: [[url: repo_url]]
]
)
}

def pipeline
node {
dir('dlang/ci') {
clone 'https://github.com/dlang/ci.git', 'master'
}
pipeline = load 'dlang/ci/pipeline.groovy'
}
pipeline.runPipeline()
library 'dlang'
runPipeline()

0 comments on commit 8f2a221

Please sign in to comment.