summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqxmips <13249609+qxmips@users.noreply.github.com>2021-02-03 07:05:54 +1000
committerChristian Poessinger <christian@poessinger.com>2021-02-02 22:07:34 +0100
commite5b0cc71295acd083d5b59e7d4473dca3eb88ecb (patch)
tree100f5e12e44398541a08671e6f7cb73c07ce213a
parentc8f90e53f30b9d8b03202e169741d7980405f3ba (diff)
downloadvyos-build-e5b0cc71295acd083d5b59e7d4473dca3eb88ecb.tar.gz
vyos-build-e5b0cc71295acd083d5b59e7d4473dca3eb88ecb.zip
Jenkins: run containers with "reuseNode" to stay on the same node
(cherry picked from commit 38fa98af45d6c22d7d876bc724d957d2545d011a)
-rw-r--r--Jenkinsfile1
-rw-r--r--packages/linux-kernel/Jenkinsfile1
-rw-r--r--vars/buildPackage.groovy1
3 files changed, 3 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 92e792c1..e7490813 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -109,6 +109,7 @@ pipeline {
}
agent {
dockerfile {
+ reuseNode true
filename 'Dockerfile'
dir 'docker'
args '--privileged --sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006'
diff --git a/packages/linux-kernel/Jenkinsfile b/packages/linux-kernel/Jenkinsfile
index 5f6d27ea..4b956846 100644
--- a/packages/linux-kernel/Jenkinsfile
+++ b/packages/linux-kernel/Jenkinsfile
@@ -50,6 +50,7 @@ node('Docker') {
pipeline {
agent {
docker {
+ reuseNode true
args "--sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006"
image "${env.DOCKER_IMAGE}"
alwaysPull true
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index 0fe81a17..1384682a 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -49,6 +49,7 @@ def call(description=null, pkgList=null, buildCmd=null) {
pipeline {
agent {
docker {
+ reuseNode true
args "--sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006"
image "${env.DOCKER_IMAGE}"
alwaysPull true