Update Jenkinsfile.

master
Icedream 2017-04-09 01:44:14 +02:00
parent 649dea8fe6
commit 39211e6888
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 18 additions and 3 deletions

19
Jenkinsfile vendored
View File

@ -1,7 +1,22 @@
node("linux && amd64 && docker") { node("linux && amd64 && docker") {
docker.image("icedream/freetz:2.0").inside { docker.image("icedream/freetz@sha256:6607702228ee9ee819d888702acf3ddefe7609132f7f15c88349251a15f5a5cc").inside {
def workspace = pwd()
checkout scm checkout scm
sh "make"
sh """
cd /freetz
cp \"${workspace}\"/.config \
\"${workspace}\"/.dynamic \
\"${workspace}\"/.packages \
\"${workspace}\"/.static \
.
chown freetz:freetz .config .dynamic .packages .static
su freetz -c \"sh -c 'umask 0022 && make oldconfig && make'\"
"""
dir("/freetz") {
archive "images/**,outboard/**" archive "images/**,outboard/**"
} }
}
} }