Added Jenkinsfile

This commit is contained in:
Fabien Poussin 2019-03-07 10:43:41 +01:00
parent 22c27bd977
commit 19dd0a5107
1 changed files with 3 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -20,7 +20,9 @@ pipeline {
}
steps {
sh 'git -C $WORKSPACE/ChibiOS pull || git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git'
sh '''BRANCH=stable_18.2.x
git -C $WORKSPACE/ChibiOS checkout $BRANCH && git -C $WORKSPACE/ChibiOS pull || git clone -b $BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git'''
sh 'CH_PATH=$WORKSPACE/ChibiOS CHC_PATH=$WORKSPACE ./tools/chbuild.sh ./testhal/STM32/'
sh 'CH_PATH=$WORKSPACE/ChibiOS CHC_PATH=$WORKSPACE ./tools/chbuild.sh ./demos/STM32/'
}