Added Jenkinsfile

This commit is contained in:
Fabien Poussin 2019-03-06 21:56:05 +01:00
parent 30773367ff
commit c4f2b98ee1
1 changed files with 80 additions and 0 deletions

80
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,80 @@
pipeline {
agent any
stages {
stage('Prepare ChibiOS') {
agent {
docker {
image 'fpoussin/jenkins:ubuntu-18.04'
}
}
steps {
sh 'exit 0'
}
}
stage('Build STM32') {
parallel {
stage('Build STM32') {
agent {
docker {
image 'fpoussin/jenkins:ubuntu-18.04-arm'
}
}
steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/STM32/'''
}
}
stage('Build NRF51') {
agent {
docker {
image 'fpoussin/jenkins:ubuntu-18.04-arm'
}
}
steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF51/'''
}
}
stage('Build NRF52') {
agent {
docker {
image 'fpoussin/jenkins:ubuntu-18.04-arm'
}
}
steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF52/'''
}
}
stage('Build TIVA') {
agent {
docker {
image 'fpoussin/jenkins:ubuntu-18.04-arm'
}
}
steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/TIVA/'''
}
}
stage('Build Kinetis') {
agent {
docker {
image 'fpoussin/jenkins:ubuntu-18.04-arm'
}
}
steps {
sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git ../ChibiOS-RT
bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/KINETIS/'''
}
}
}
}
}
}