|
|
|
@ -4,8 +4,11 @@ pipeline { |
|
|
|
environment{ |
|
|
|
REPO_SCRIPTS = "https://git.teajay.cc/teajay/FFKW-Jenkins-Scripte" |
|
|
|
REPO_GLUON = "https://github.com/freifunk-gluon/gluon.git" |
|
|
|
REPO_SITE = "https://git.teajay.cc/teajay/FFKW-Site-Multidomain.git" |
|
|
|
|
|
|
|
DIR_SCRIPTS = "scrpt" |
|
|
|
DATE = sh(returnStdout: true, script: "date '+%Y%m%d-%H%M'").trim() |
|
|
|
SIGN_SECRET = "/gluon-secret/secret" |
|
|
|
} |
|
|
|
|
|
|
|
stages { |
|
|
|
@ -31,11 +34,11 @@ pipeline { |
|
|
|
} |
|
|
|
|
|
|
|
echo "Checking out gluon version ${VERSION}" |
|
|
|
sh "git clone https://github.com/freifunk-gluon/gluon.git gluon -b ${VERSION}" |
|
|
|
sh "git clone ${REPO_GLUON} gluon -b ${VERSION}" |
|
|
|
|
|
|
|
echo "Checking out site config" |
|
|
|
dir("gluon/site"){ |
|
|
|
sh "git clone https://github.com/Netzwerk-Koenigswinter/site-ffkw-multidomain.git -b wireguard ." |
|
|
|
sh "git clone ${REPO_SITE} -b ${BRANCH} ." |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -43,18 +46,14 @@ pipeline { |
|
|
|
stage('build'){ |
|
|
|
steps{ |
|
|
|
dir("gluon"){ |
|
|
|
//sh "make update" |
|
|
|
//sh "make GLUON_TARGET=ar71xx-generic -j13" |
|
|
|
//sh 'for TARGET in $(make list-targets); do\\' |
|
|
|
//sh ' make GLUON_TARGET=\$TARGET\\' |
|
|
|
//sh 'done' |
|
|
|
|
|
|
|
sh """ |
|
|
|
make update |
|
|
|
for TARGET in \$(make list-targets); do |
|
|
|
make GLUON_TARGET=\$TARGET |
|
|
|
make GLUON_TARGET=\$TARGET GLUON_RELEASE=${VERSION}-wireguard GLUON_BRANCH=${BRANCH} DEFAULT_GLUON_RELEASE=${VERSION}${DATE} |
|
|
|
done |
|
|
|
|
|
|
|
make manifest GLUON_BRANCH=${BRANCH} GLUON_RELEASE=${VERSION}-wireguard |
|
|
|
contrib/sign.sh ${SIGN_SECRET} output/images/sysupgrade/${BRANCH}.manifest |
|
|
|
""" |
|
|
|
|
|
|
|
} |
|
|
|
|