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-07 08:30:01 -08:00
|
|
|
parallel {
|
|
|
|
stage('Build STM32') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-arm'
|
|
|
|
}
|
2019-03-06 13:34:17 -08:00
|
|
|
|
2019-03-07 08:30:01 -08:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
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:30:01 -08:00
|
|
|
sh '''export CH_PATH=$WORKSPACE/ChibiOS
|
2019-03-07 08:25:16 -08:00
|
|
|
export CHC_PATH=$WORKSPACE
|
|
|
|
|
2019-03-07 08:30:01 -08:00
|
|
|
./tools/chbuild.sh ./testhal/STM32/
|
|
|
|
./tools/chbuild.sh ./demos/STM32/'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build NRF51') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-arm'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''arm-none-eabi-gcc -v
|
|
|
|
|
|
|
|
rm -rf $CH_PATH
|
|
|
|
git clone -b $CH_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 '''export CH_PATH=$WORKSPACE/ChibiOS
|
2019-03-07 08:25:16 -08:00
|
|
|
export CHC_PATH=$WORKSPACE
|
|
|
|
|
2019-03-07 08:30:01 -08:00
|
|
|
./tools/chbuild.sh ./testhal/NRF51/
|
|
|
|
./tools/chbuild.sh ./demos/NRF51/
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build NRF52') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-arm'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''arm-none-eabi-gcc -v
|
|
|
|
|
|
|
|
rm -rf $CH_PATH
|
|
|
|
git clone -b $CH_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 '''export CH_PATH=$WORKSPACE/ChibiOS
|
|
|
|
export CHC_PATH=$WORKSPACE
|
|
|
|
|
|
|
|
./tools/chbuild.sh ./testhal/NRF52/
|
|
|
|
./tools/chbuild.sh ./demos/NRF52/
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build Kinetis') {
|
|
|
|
agent {
|
|
|
|
docker {
|
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-arm'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''arm-none-eabi-gcc -v
|
|
|
|
|
|
|
|
rm -rf $CH_PATH
|
|
|
|
git clone -b $CH_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 '''export CH_PATH=$WORKSPACE/ChibiOS
|
|
|
|
export CHC_PATH=$WORKSPACE
|
|
|
|
|
|
|
|
./tools/chbuild.sh ./testhal/KINETIS/
|
|
|
|
./tools/chbuild.sh ./demos/KINETIS/
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
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
|
|
|
}
|