diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-18 12:39:32 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-18 12:39:32 +0100 |
commit | 1dee6edc15149e4d420deae49f6409a4cb16ed06 (patch) | |
tree | 14106a54ea77bb2480124b2da28fd8e3327c4cd4 | |
parent | a26ecd08fbb5448dd53e16b05431212122a4b727 (diff) | |
download | vyos-world-1dee6edc15149e4d420deae49f6409a4cb16ed06.tar.gz vyos-world-1dee6edc15149e4d420deae49f6409a4cb16ed06.zip |
Jenkins: adjust to new Debian Buster build
-rw-r--r-- | Jenkinsfile | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index b11267e..3b8daeb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -73,7 +73,8 @@ pipeline { agent { docker { args '--sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006' - image 'vyos/vyos-build:equuleus' + image 'vyos/vyos-build:current' + alwaysPull true } } options { @@ -87,7 +88,8 @@ pipeline { steps { script { dir('build') { - git branch: getGitBranchName(), url: getGitRepoURL() + git branch: getGitBranchName(), + url: getGitRepoURL() } } } @@ -96,7 +98,10 @@ pipeline { steps { script { dir('build') { - sh "dpkg-buildpackage -b -us -uc -tc" + def commitId = sh(returnStdout: true, script: 'git rev-parse --short=11 HEAD').trim() + currentBuild.description = sprintf('Git SHA1: %s', commitId[-11..-1]) + + sh 'dpkg-buildpackage -b -us -uc -tc' } } } @@ -118,9 +123,6 @@ pipeline { // every option over and over again! def VYOS_REPO_PATH = '/home/sentrium/web/dev.packages.vyos.net/public_html/repositories/' + getGitBranchName() + '/' - if (getGitBranchName() != "equuleus") - VYOS_REPO_PATH += 'vyos/' - def SSH_OPTS = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o LogLevel=ERROR' def SSH_REMOTE = 'khagen@10.217.48.113' |