forked from dlang/phobos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use ci repo as shared jenkins library
- Loading branch information
1 parent
0bdd723
commit 8f2a221
Showing
1 changed file
with
2 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |