aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-03-06 23:35:58 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2019-03-06 23:35:58 +0100
commit6f30cc30fe238a296a2cae7c27cf09078b054217 (patch)
tree47bce13093a778c3acfc077650b3433f19daf359 /Jenkinsfile
parent88b07625448b0a8e8741b676af18d7dcd54757d7 (diff)
downloadChibiOS-Contrib-6f30cc30fe238a296a2cae7c27cf09078b054217.tar.gz
ChibiOS-Contrib-6f30cc30fe238a296a2cae7c27cf09078b054217.tar.bz2
ChibiOS-Contrib-6f30cc30fe238a296a2cae7c27cf09078b054217.zip
Added Jenkinsfile
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile87
1 files changed, 11 insertions, 76 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index dfea3a5..be26f9c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -9,89 +9,24 @@ pipeline {
}
steps {
- ws(dir: 'workspace/Contrib') {
- sh 'exit 0'
- }
-
+ sh 'exit 0'
}
}
stage('Build STM32') {
- parallel {
- stage('Build STM32') {
- agent {
- docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
- }
-
- }
- steps {
- ws(dir: 'workspace/Contrib') {
- sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/../ChibiOS-RT
-bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/STM32/'''
- }
-
- }
- }
- stage('Build NRF51') {
- agent {
- docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
- }
-
- }
- steps {
- ws(dir: 'workspace/Contrib') {
- sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/../ChibiOS-RT
-bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF51/'''
- }
-
- }
- }
- stage('Build NRF52') {
- agent {
- docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
- }
-
- }
- steps {
- ws(dir: 'workspace/Contrib') {
- sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/../ChibiOS-RT
-bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/NRF52/'''
- }
-
- }
+ agent {
+ docker {
+ image 'fpoussin/jenkins:ubuntu-18.04-arm'
}
- stage('Build TIVA') {
- agent {
- docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
- }
-
- }
- steps {
- ws(dir: 'workspace/Contrib') {
- sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/../ChibiOS-RT
-bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/TIVA/'''
- }
- }
- }
- stage('Build Kinetis') {
- agent {
- docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
- }
+ }
+ steps {
+ sh '''mkdir /tmp/contrib
+cp -r $WORKSPACE/* $WORKSPACE/*.git /tmp/contrib/
- }
- steps {
- ws(dir: 'workspace/Contrib') {
- sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/../ChibiOS-RT
-bash $WORKSPACE/tools/chbuild.sh $WORKSPACE/testhal/KINETIS/'''
- }
- }
- }
+mv -v /tmp/contrib $WORKSPACE/'''
+ sh '''git clone -b stable_19.1.x --single-branch https://github.com/ChibiOS/ChibiOS.git $WORKSPACE/ChibiOS-RT
+bash $WORKSPACE/contrib/tools/chbuild.sh $WORKSPACE/contrib/testhal/STM32/'''
}
}
}