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
|
|
|
}
|
|
|
|
}
|
2020-04-04 09:20:41 -07:00
|
|
|
|
2019-03-11 08:38:13 -07:00
|
|
|
stage('Build Platforms') {
|
2019-03-07 08:30:01 -08:00
|
|
|
parallel {
|
|
|
|
stage('Build STM32') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2019-03-11 14:06:08 -07:00
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-chibios'
|
2019-03-07 08:30:01 -08:00
|
|
|
}
|
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-10-03 13:37:50 -07:00
|
|
|
cd $WORKSPACE/ext
|
|
|
|
for i in *.7z; do 7z x -y $i; done
|
|
|
|
|
|
|
|
cd $WORKSPACE
|
2019-03-07 02:00:13 -08:00
|
|
|
rm -rf $CH_PATH
|
2019-03-11 14:06:08 -07:00
|
|
|
git clone /var/lib/git/ChibiOS $CH_PATH
|
|
|
|
cd $CH_PATH
|
|
|
|
git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
|
2019-03-11 14:22:14 -07:00
|
|
|
git fetch --all
|
|
|
|
git checkout -b $CH_BRANCH origin/$CH_BRANCH
|
2019-03-11 14:18:47 -07:00
|
|
|
git pull --rebase origin $CH_BRANCH
|
2019-03-07 02:00:13 -08:00
|
|
|
|
2019-03-11 14:06:08 -07:00
|
|
|
cd 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/'''
|
|
|
|
}
|
|
|
|
}
|
2020-04-04 09:20:41 -07:00
|
|
|
|
2019-03-07 08:30:01 -08:00
|
|
|
stage('Build NRF51') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2019-03-11 14:06:08 -07:00
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-chibios'
|
2019-03-07 08:30:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''arm-none-eabi-gcc -v
|
|
|
|
|
2019-10-03 13:37:50 -07:00
|
|
|
cd $WORKSPACE/ext
|
|
|
|
for i in *.7z; do 7z x -y $i; done
|
|
|
|
|
|
|
|
cd $WORKSPACE
|
2019-03-07 08:30:01 -08:00
|
|
|
rm -rf $CH_PATH
|
2019-03-11 14:06:08 -07:00
|
|
|
git clone /var/lib/git/ChibiOS $CH_PATH
|
|
|
|
cd $CH_PATH
|
|
|
|
git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
|
2019-03-11 14:22:14 -07:00
|
|
|
git fetch --all
|
|
|
|
git checkout -b $CH_BRANCH origin/$CH_BRANCH
|
2019-03-11 14:18:47 -07:00
|
|
|
git pull --rebase origin $CH_BRANCH
|
2019-03-07 08:30:01 -08:00
|
|
|
|
2019-03-11 14:06:08 -07:00
|
|
|
cd ext
|
|
|
|
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/NRF51/
|
|
|
|
./tools/chbuild.sh ./demos/NRF51/
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2020-04-04 09:20:41 -07:00
|
|
|
|
2019-03-07 08:30:01 -08:00
|
|
|
stage('Build NRF52') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2019-03-11 14:06:08 -07:00
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-chibios'
|
2019-03-07 08:30:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''arm-none-eabi-gcc -v
|
|
|
|
|
2019-10-03 13:37:50 -07:00
|
|
|
cd $WORKSPACE/ext
|
|
|
|
for i in *.7z; do 7z x -y $i; done
|
|
|
|
|
|
|
|
cd $WORKSPACE
|
2019-03-07 08:30:01 -08:00
|
|
|
rm -rf $CH_PATH
|
2019-03-11 14:06:08 -07:00
|
|
|
git clone /var/lib/git/ChibiOS $CH_PATH
|
|
|
|
cd $CH_PATH
|
|
|
|
git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
|
2019-03-11 14:22:14 -07:00
|
|
|
git fetch --all
|
|
|
|
git checkout -b $CH_BRANCH origin/$CH_BRANCH
|
2019-03-11 14:18:47 -07:00
|
|
|
git pull --rebase origin $CH_BRANCH
|
2019-03-07 08:30:01 -08:00
|
|
|
|
2019-03-11 14:06:08 -07:00
|
|
|
cd ext
|
|
|
|
for i in *.7z; do 7z x -y $i; done'''
|
2019-03-07 08:30:01 -08:00
|
|
|
sh '''export CH_PATH=$WORKSPACE/ChibiOS
|
|
|
|
export CHC_PATH=$WORKSPACE
|
|
|
|
|
|
|
|
./tools/chbuild.sh ./testhal/NRF52/
|
|
|
|
./tools/chbuild.sh ./demos/NRF52/
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2020-04-04 09:20:41 -07:00
|
|
|
|
2019-03-07 08:30:01 -08:00
|
|
|
stage('Build Kinetis') {
|
|
|
|
agent {
|
|
|
|
docker {
|
2019-03-11 14:06:08 -07:00
|
|
|
image 'fpoussin/jenkins:ubuntu-18.04-chibios'
|
2019-03-07 08:30:01 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
steps {
|
|
|
|
sh '''arm-none-eabi-gcc -v
|
|
|
|
|
2019-10-03 13:37:50 -07:00
|
|
|
cd $WORKSPACE/ext
|
|
|
|
for i in *.7z; do 7z x -y $i; done
|
|
|
|
|
|
|
|
cd $WORKSPACE
|
2019-03-07 08:30:01 -08:00
|
|
|
rm -rf $CH_PATH
|
2019-03-11 14:06:08 -07:00
|
|
|
git clone /var/lib/git/ChibiOS $CH_PATH
|
|
|
|
cd $CH_PATH
|
|
|
|
git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
|
2019-03-11 14:22:14 -07:00
|
|
|
git fetch --all
|
|
|
|
git checkout -b $CH_BRANCH origin/$CH_BRANCH
|
2019-03-11 14:18:47 -07:00
|
|
|
git pull --rebase origin $CH_BRANCH
|
2019-03-07 08:30:01 -08:00
|
|
|
|
2019-03-11 14:06:08 -07:00
|
|
|
cd ext
|
2019-03-07 08:30:01 -08:00
|
|
|
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/
|
|
|
|
'''
|
|
|
|
}
|
|
|
|
}
|
2020-04-04 09:20:41 -07:00
|
|
|
|
2019-03-06 12:56:05 -08:00
|
|
|
}
|
|
|
|
}
|
2020-04-04 09:20:41 -07:00
|
|
|
|
2019-03-06 12:56:05 -08:00
|
|
|
}
|
2019-03-07 07:06:33 -08:00
|
|
|
environment {
|
2020-04-04 09:20:41 -07:00
|
|
|
CH_BRANCH = 'stable_20.3.x'
|
2019-03-07 08:25:16 -08:00
|
|
|
CH_PATH = 'ChibiOS'
|
2019-03-07 07:06:33 -08:00
|
|
|
}
|
2019-10-03 13:37:50 -07:00
|
|
|
}
|