„Jenkinsfile“ ändern
This commit is contained in:
parent
447fd2d241
commit
636546a34b
|
@ -1,8 +1,9 @@
|
|||
script {
|
||||
NOW= java.time.LocalDateTime.now()
|
||||
RELEASE="${env.BRANCH_NAME}-${NOW}"
|
||||
NOW=java.time.LocalDateTime.now()
|
||||
BRANCH="experimental"
|
||||
RELEASE="${BRANCH}-${NOW}"
|
||||
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
|
||||
|
@ -33,9 +34,9 @@ List TARGETS = ['x86-64', 'ath79-generic']
|
|||
node {
|
||||
stage ('Build') {
|
||||
for (arch in TARGETS) {
|
||||
node("${arch}-${env.BRANCH_NAME}") {
|
||||
node("target:${arch} && branch:${BRANCH}") {
|
||||
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 "make update"
|
||||
sh "make -j${NUM_JOBS} GLUON_TARGET=${GLUON_TARGET} ${MAKE_OPTS} || make -j1 V=s GLUON_TARGET=${GLUON_TARGET} ${MAKE_OPTS}"
|
||||
|
|
Reference in New Issue