Added Jenkinsfile

This commit is contained in:
Fabien Poussin 2019-03-06 22:03:09 +01:00
parent c4f2b98ee1
commit ca5a2353e5
1 changed files with 12 additions and 11 deletions

23
Jenkinsfile vendored
View File

@ -9,7 +9,8 @@ pipeline {
} }
steps { steps {
sh 'exit 0' sh '''mkdir -p $WORKSPACE/contrib
mv -v $WORKSPACE/* $WORKSPACE/.* contrib/'''
} }
} }
stage('Build STM32') { stage('Build STM32') {
@ -22,8 +23,8 @@ pipeline {
} }
steps { steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/STM32/''' bash $WORKSPACE/contrib/tools/chbuild.sh $WORKSPACE/contrib/testhal/STM32/'''
} }
} }
stage('Build NRF51') { stage('Build NRF51') {
@ -34,8 +35,8 @@ bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/STM32/'''
} }
steps { steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF51/''' bash $WORKSPACE/contrib/tools/chbuild.sh $WORKSPACE/contrib/testhal/NRF51/'''
} }
} }
stage('Build NRF52') { stage('Build NRF52') {
@ -46,8 +47,8 @@ bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF51/'''
} }
steps { steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF52/''' bash $WORKSPACE/contrib/tools/chbuild.sh $WORKSPACE/contrib/testhal/NRF52/'''
} }
} }
stage('Build TIVA') { stage('Build TIVA') {
@ -58,8 +59,8 @@ bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF52/'''
} }
steps { steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/TIVA/''' bash $WORKSPACE/contrib/tools/chbuild.sh $WORKSPACE/contrib/testhal/TIVA/'''
} }
} }
stage('Build Kinetis') { stage('Build Kinetis') {
@ -70,8 +71,8 @@ bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/TIVA/'''
} }
steps { steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/KINETIS/''' bash $WORKSPACE/contrib/tools/chbuild.sh $WORKSPACE/contrib/testhal/KINETIS/'''
} }
} }
} }