forked from Freifunk-Leipzig/gluon-firmware
„Jenkinsfile“ ändern
This commit is contained in:
parent
447fd2d241
commit
636546a34b
|
@ -1,8 +1,9 @@
|
||||||
script {
|
script {
|
||||||
NOW= java.time.LocalDateTime.now()
|
NOW=java.time.LocalDateTime.now()
|
||||||
RELEASE="${env.BRANCH_NAME}-${NOW}"
|
BRANCH="experimental"
|
||||||
|
RELEASE="${BRANCH}-${NOW}"
|
||||||
echo "Build release ${RELEASE}"
|
echo "Build release ${RELEASE}"
|
||||||
MAKE_OPTS="GLUON_RELEASE=${RELEASE} GLUON_AUTOUPDATER_BRANCH=${env.BRANCH_NAME} GLUON_AUTOUPDATER_ENABLED=1"
|
MAKE_OPTS="GLUON_RELEASE=${RELEASE} GLUON_AUTOUPDATER_BRANCH=${BRANCH} GLUON_AUTOUPDATER_ENABLED=1"
|
||||||
}
|
}
|
||||||
|
|
||||||
int NUM_JOBS = 8
|
int NUM_JOBS = 8
|
||||||
|
@ -33,9 +34,9 @@ List TARGETS = ['x86-64', 'ath79-generic']
|
||||||
node {
|
node {
|
||||||
stage ('Build') {
|
stage ('Build') {
|
||||||
for (arch in TARGETS) {
|
for (arch in TARGETS) {
|
||||||
node("${arch}-${env.BRANCH_NAME}") {
|
node("target:${arch} && branch:${BRANCH}") {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
git branch: env.BRANCH_NAME, url: 'https://git.dezentrale.cloud/alex/gluon-firmware.git'
|
git branch: BRANCH, url: 'https://git.dezentrale.cloud/alex/gluon-firmware.git'
|
||||||
sh 'git submodule update --init --recursive'
|
sh 'git submodule update --init --recursive'
|
||||||
sh "make update"
|
sh "make update"
|
||||||
sh "make -j${NUM_JOBS} GLUON_TARGET=${GLUON_TARGET} ${MAKE_OPTS} || make -j1 V=s GLUON_TARGET=${GLUON_TARGET} ${MAKE_OPTS}"
|
sh "make -j${NUM_JOBS} GLUON_TARGET=${GLUON_TARGET} ${MAKE_OPTS} || make -j1 V=s GLUON_TARGET=${GLUON_TARGET} ${MAKE_OPTS}"
|
||||||
|
|
Loading…
Reference in New Issue