summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqxmips <13249609+qxmips@users.noreply.github.com>2021-02-03 07:05:54 +1000
committerGitHub <noreply@github.com>2021-02-02 22:05:54 +0100
commit38fa98af45d6c22d7d876bc724d957d2545d011a (patch)
treeb5738c35b4353300c21db931d39ef9d14c6eeb04
parent27d0d96ccdcc2b93e5900eb1b22e2fdae429c4ef (diff)
downloadvyos-build-38fa98af45d6c22d7d876bc724d957d2545d011a.tar.gz
vyos-build-38fa98af45d6c22d7d876bc724d957d2545d011a.zip
Jenkins: run containers with "reuseNode" to stay on the same node
-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 1289cf5b..1429b00b 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -110,6 +110,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 c34b9d6a..72825e5a 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