diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-04-09 10:11:42 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-04-09 11:53:50 +0200 |
commit | d127e81f0ca1ad7d358f376c0112a5c9c4d16a88 (patch) | |
tree | b70814c197f20d6428aa6c32c3435df1118d6f26 /vars/cloneAndBuild.groovy | |
parent | 79f6e77ff3ede53fe424c73b3b48dca0d7c6424c (diff) | |
download | vyos-build-d127e81f0ca1ad7d358f376c0112a5c9c4d16a88.tar.gz vyos-build-d127e81f0ca1ad7d358f376c0112a5c9c4d16a88.zip |
Kernel: move build to "normal" Pipeline library
This is initial work required to also build an arm64 Kernel via the CI.
Diffstat (limited to 'vars/cloneAndBuild.groovy')
-rw-r--r-- | vars/cloneAndBuild.groovy | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/vars/cloneAndBuild.groovy b/vars/cloneAndBuild.groovy index f945ba75..0fc847f4 100644 --- a/vars/cloneAndBuild.groovy +++ b/vars/cloneAndBuild.groovy @@ -34,12 +34,14 @@ def call(description, architecture, pkgList, buildCmd) { // let us reuse this script for packages like vyos-1x which ship a Jenkinfile in
// their repositories root folder.
pkgList.each { pkg ->
- dir(env.BASE_DIR + pkg.name) {
- checkout([$class: 'GitSCM',
- doGenerateSubmoduleConfigurations: false,
- extensions: [[$class: 'CleanCheckout']],
- branches: [[name: pkg.scmCommit]],
- userRemoteConfigs: [[url: pkg.scmUrl]]])
+ if (pkg.scmUrl && pkg.scmCommit) {
+ dir(env.BASE_DIR + pkg.name) {
+ checkout([$class: 'GitSCM',
+ doGenerateSubmoduleConfigurations: false,
+ extensions: [[$class: 'CleanCheckout']],
+ branches: [[name: pkg.scmCommit]],
+ userRemoteConfigs: [[url: pkg.scmUrl]]])
+ }
}
}
}
|