forked from Freifunk-Leipzig/gluon-firmware
„Jenkinsfile“ hinzufügen
This commit is contained in:
parent
ae2afcee2b
commit
6811777292
|
@ -0,0 +1,84 @@
|
|||
script {
|
||||
NOW= java.time.LocalDateTime.now()
|
||||
RELEASE="${params.BRANCH}-$NOW"
|
||||
}
|
||||
|
||||
int NUM_JOBS = 8
|
||||
|
||||
List TARGETS = [
|
||||
'ath79-generic',
|
||||
'ath79-nand',
|
||||
'bcm27xx-bcm2708',
|
||||
'bcm27xx-bcm2709',
|
||||
'ipq40xx-generic',
|
||||
'ipq806x-generic',
|
||||
'lantiq-xrx200',
|
||||
'lantiq-xway',
|
||||
'mediatek-mt7622',
|
||||
'mpc85xx-p1020',
|
||||
'ramips-mt7620',
|
||||
'ramips-mt7621',
|
||||
'ramips-mt76x8',
|
||||
'rockchip-armv8',
|
||||
'sunxi-cortexa7',
|
||||
'x86-64',
|
||||
'x86-geode',
|
||||
'x86-generic',
|
||||
]
|
||||
pipeline {
|
||||
agent none
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
matrix {
|
||||
agent any
|
||||
|
||||
axes {
|
||||
axis {
|
||||
name 'GLUON_TARGET'
|
||||
values 'x86-64'
|
||||
/*'ath79-generic',
|
||||
'ath79-nand',
|
||||
'bcm27xx-bcm2708',
|
||||
'bcm27xx-bcm2709',
|
||||
'ipq40xx-generic',
|
||||
'ipq806x-generic',
|
||||
'lantiq-xrx200',
|
||||
'lantiq-xway',
|
||||
'mediatek-mt7622',
|
||||
'mpc85xx-p1020',
|
||||
'ramips-mt7620',
|
||||
'ramips-mt7621',
|
||||
'ramips-mt76x8',
|
||||
'rockchip-armv8',
|
||||
'sunxi-cortexa7',
|
||||
'x86-64',
|
||||
'x86-geode',
|
||||
'x86-generic'*/
|
||||
}
|
||||
}
|
||||
stages {
|
||||
stage("Build") {
|
||||
steps {
|
||||
git(branch: "${params.BRANCH}", 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}"
|
||||
echo "Build ${GLUON_TARGET}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always { archiveArtifacts artifacts: 'output/**', fingerprint: true }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage("Sign") {
|
||||
steps {
|
||||
echo "Sign"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue