Update Jenkinsfile.
parent
649dea8fe6
commit
39211e6888
|
@ -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/**"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue