36 lines
782 B
Groovy
36 lines
782 B
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Prepare ChibiOS') {
|
|
agent {
|
|
docker {
|
|
image 'fpoussin/jenkins:ubuntu-18.04'
|
|
}
|
|
|
|
}
|
|
steps {
|
|
sh 'exit 0'
|
|
}
|
|
}
|
|
stage('Build STM32') {
|
|
agent {
|
|
docker {
|
|
image 'fpoussin/jenkins:ubuntu-18.04-arm'
|
|
}
|
|
|
|
}
|
|
steps {
|
|
sh '''BRANCH=stable_18.2.x
|
|
CH_PATH=$WORKSPACE/ChibiOS
|
|
|
|
rm -rf $CH_PATH
|
|
git clone -b $BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git $CH_PATH
|
|
|
|
cd $CH_PATH/ext
|
|
for i in *.7z; do 7z x -y $i; done'''
|
|
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/'
|
|
}
|
|
}
|
|
}
|
|
} |