ChibiOS-Contrib/Jenkinsfile

40 lines
779 B
Plaintext
Raw Normal View History

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 07:06:33 -08:00
sh '''arm-none-eabi-gcc -v
2019-03-07 03:36:45 -08:00
2019-03-07 02:00:13 -08:00
rm -rf $CH_PATH
2019-03-07 07:06:33 -08:00
git clone -b $CH_BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git $CH_PATH
2019-03-07 02:00:13 -08:00
cd $CH_PATH/ext
2019-03-07 02:15:15 -08:00
for i in *.7z; do 7z x -y $i; done'''
2019-03-07 07:06:33 -08:00
sh './tools/chbuild.sh ./testhal/STM32/'
sh './tools/chbuild.sh ./demos/STM32/'
2019-03-06 12:56:05 -08:00
}
}
}
2019-03-07 07:06:33 -08:00
environment {
CH_BRANCH = 'stable_18.2.x'
CH_PATH = '$WORKSPACE/ChibiOS'
CHC_PATH = '$WORKSPACE'
}
2019-03-06 12:56:05 -08:00
}