summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-01-11 07:31:05 +0100
committerChristian Poessinger <christian@poessinger.com>2019-01-11 07:33:16 +0100
commit041bc80e71c3c700ff0c01702d9ffd0885d2b75b (patch)
tree5d8e7319a1dfa82da0bd194d70d888712f92360e /Jenkinsfile
parent988a099f98e5cfb1b15d8b2adb45277342ac0304 (diff)
downloadvyos-build-041bc80e71c3c700ff0c01702d9ffd0885d2b75b.tar.gz
vyos-build-041bc80e71c3c700ff0c01702d9ffd0885d2b75b.zip
CI/CD: Improve 'goso' handling for Docker and Jenkins
* Inside the container user can call 'sudo' without password * Added Docker environment variables to controll the 'gosu' UID/GID
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 611777cc..3406e606 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,7 +21,7 @@ pipeline {
dockerfile {
filename 'Dockerfile'
label 'jessie-amd64'
- args '--privileged --sysctl net.ipv6.conf.lo.disable_ipv6=0'
+ args '--privileged --sysctl net.ipv6.conf.lo.disable_ipv6=0 -e GOSU_UID=1006 -e GOSU_GID=1006'
}
}
@@ -44,8 +44,7 @@ pipeline {
sh '''
#!/bin/sh
./configure --build-by="autobuild@vyos.net" --debian-mirror="http://ftp.us.debian.org/debian/"
- ls -al
- ls -al packages
+ ls -al packages/*.deb
sudo make iso
'''
}