„Jenkinsfile“ ändern

This commit is contained in:
alex 2021-09-12 17:13:57 +02:00
parent 6811777292
commit 480b1e2207
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -1,6 +1,7 @@
script {
NOW= java.time.LocalDateTime.now()
RELEASE="${params.BRANCH}-$NOW"
echo 'Pulling...' + env.BRANCH_NAME
}
int NUM_JOBS = 8
@ -60,7 +61,7 @@ pipeline {
stages {
stage("Build") {
steps {
git(branch: "${params.BRANCH}", url: "https://git.dezentrale.cloud/Freifunk-Leipzig/gluon-firmware.git")
git(branch: "${env.BRANCH_NAME}", url: "https://git.dezentrale.cloud/Freifunk-Leipzig/gluon-firmware.git")
sh 'git submodule update --init --recursive'
sh "make update"
sh "make -j${params.NUM_JOBS} GLUON_TARGET=${GLUON_TARGET} || make -j1 V=s GLUON_TARGET=${GLUON_TARGET}"