From e5b0cc71295acd083d5b59e7d4473dca3eb88ecb Mon Sep 17 00:00:00 2001 From: qxmips <13249609+qxmips@users.noreply.github.com> Date: Wed, 3 Feb 2021 07:05:54 +1000 Subject: Jenkins: run containers with "reuseNode" to stay on the same node (cherry picked from commit 38fa98af45d6c22d7d876bc724d957d2545d011a) --- Jenkinsfile | 1 + packages/linux-kernel/Jenkinsfile | 1 + vars/buildPackage.groovy | 1 + 3 files changed, 3 insertions(+) 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 -- cgit v1.2.3