2019-03-06 12:56:05 -08:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Prepare ChibiOS') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
2019-03-06 14:35:58 -08:00
|
|
|
sh 'exit 0'
|
2019-03-06 12:56:05 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build STM32') {
|
2019-03-06 14:35:58 -08:00
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-arm'
|
2019-03-06 12:56:05 -08:00
|
|
|
}
|
2019-03-06 13:34:17 -08:00
|
|
|
|
2019-03-06 14:35:58 -08:00
|
|
|
}
|
|
|
|
steps {
|
2019-03-07 01:43:41 -08:00
|
|
|
sh '''BRANCH=stable_18.2.x
|
2019-03-07 02:00:13 -08:00
|
|
|
CH_PATH=$WORKSPACE/ChibiOS
|
2019-03-07 01:43:41 -08:00
|
|
|
|
2019-03-07 02:00:13 -08:00
|
|
|
rm -rf $CH_PATH
|
|
|
|
git clone -b $BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git $CH_PATH
|
|
|
|
|
|
|
|
cd $CH_PATH/ext
|
2019-03-07 02:01:11 -08:00
|
|
|
7z x -y *.7z'''
|
2019-03-07 01:36:24 -08:00
|
|
|
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/'
|
2019-03-06 12:56:05 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|