diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-18 12:24:48 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-18 12:24:48 +0100 |
commit | 9e6f1a78f6c3037da46d29eae3270bfacc62a9ed (patch) | |
tree | acb9a7d4f7159a0101020dd08470cfed196bbb6b | |
parent | 378d06fa48d7a394899d6e1da9b9150b8552420a (diff) | |
parent | 1053e29181b1da4572023cac56ffdcad7cce915f (diff) | |
download | vyatta-zone-9e6f1a78f6c3037da46d29eae3270bfacc62a9ed.tar.gz vyatta-zone-9e6f1a78f6c3037da46d29eae3270bfacc62a9ed.zip |
Merge branch 'equuleus' of github.com:vyos/vyatta-zone into current
* 'equuleus' of github.com:vyos/vyatta-zone:
Jenkins: import Pipeline from vyos-1x commit bd00ec7
update Jenkins file for equuleus
-rw-r--r-- | Jenkinsfile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 20eb253..3b8daeb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -74,6 +74,7 @@ pipeline { docker { args '--sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006' 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' |