diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-08 20:27:30 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-08 21:58:48 +0100 |
commit | db4a33fa3b66270fb95f85cc392151afd94bcbf8 (patch) | |
tree | 3240f01db9e01a59d6f773c41183fa01a8495056 | |
parent | 3c3f35555ea7bfa7569f10fb0819b848f81ff663 (diff) | |
download | vyos-build-db4a33fa3b66270fb95f85cc392151afd94bcbf8.tar.gz vyos-build-db4a33fa3b66270fb95f85cc392151afd94bcbf8.zip |
Jenkins: frr: support arm64 builds
-rw-r--r-- | packages/frr/Jenkinsfile | 2 | ||||
-rw-r--r-- | vars/buildPackage.groovy | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/packages/frr/Jenkinsfile b/packages/frr/Jenkinsfile index 2129f37..f79a09f 100644 --- a/packages/frr/Jenkinsfile +++ b/packages/frr/Jenkinsfile @@ -28,4 +28,4 @@ def pkgList = [ ] // Start package build using library function from https://github.com/vyos/vyos-build -buildPackage('FRRouting', pkgList) +buildPackage('FRRouting', pkgList, null, true) diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy index ce85b87..b777f2b 100644 --- a/vars/buildPackage.groovy +++ b/vars/buildPackage.groovy @@ -51,7 +51,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { options { disableConcurrentBuilds() skipDefaultCheckout() - timeout(time: 60, unit: 'MINUTES') + timeout(time: 120, unit: 'MINUTES') timestamps() } stages { @@ -130,10 +130,9 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { // publish build result, using SSH-dev.packages.vyos.net Jenkins Credentials sshagent(['SSH-dev.packages.vyos.net']) { - files = findFiles(glob: '*.deb') + files = findFiles(glob: '**/*.deb') if (files) { sh(script: "ssh ${SSH_OPTS} ${SSH_REMOTE} -t \"bash --login -c 'mkdir -p ${SSH_DIR}'\"") - sh(script: "scp ${SSH_OPTS} -r *.deb ${SSH_REMOTE}:${SSH_DIR}") echo "Uploading package(s) and updating package(s) in the repository ..." files.each { FILE -> // NOTE: Groovy is a pain in the ass and " quotes differ from ', so all shell code must use " in the beginning @@ -142,7 +141,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { def ARCH = '' if (PACKAGE_ARCH != 'all') ARCH = '-A ' + PACKAGE_ARCH - + sh(script: "scp ${SSH_OPTS} ${FILE} ${SSH_REMOTE}:${SSH_DIR}") sh(script: "ssh ${SSH_OPTS} ${SSH_REMOTE} -t \"uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} ${ARCH} remove ${RELEASE} ${PACKAGE}'\"") sh(script: "ssh ${SSH_OPTS} ${SSH_REMOTE} -t \"uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} ${ARCH} includedeb ${RELEASE} ${SSH_DIR}/${FILE}'\"") } |