diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..e0f3e32 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +#!/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()