ChibiOS-Contrib/Jenkinsfile

49 lines
922 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-07 07:25:27 -08:00
sh '''echo $CH_BRANCH
echo $CH_PATH
2019-03-07 08:25:16 -08:00
echo $CHC_PATH
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 08:25:16 -08:00
sh '''export CH_PATH=$WORKSPACE/ChibiOS
export CHC_PATH=$WORKSPACE
./tools/chbuild.sh ./testhal/STM32/'''
sh '''export CH_PATH=$WORKSPACE/ChibiOS
export CHC_PATH=$WORKSPACE
./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'
2019-03-07 08:25:16 -08:00
CH_PATH = 'ChibiOS'
2019-03-07 07:06:33 -08:00
}
2019-03-06 12:56:05 -08:00
}