Jenkins: run containers with "reuseNode" to stay on the same node

This commit is contained in:
qxmips 2021-02-03 07:05:54 +10:00 committed by GitHub
parent 27d0d96ccd
commit 38fa98af45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

1
Jenkinsfile vendored
View File

@ -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'

View File

@ -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

View File

@ -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