aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-03-11 22:06:08 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2019-03-11 22:06:08 +0100
commit369b44119ee231b5cb2cbccd7fc0e14dca7314f8 (patch)
tree9babbdc277721f9ed516b472f43db310b5f7d82e /Jenkinsfile
parenta4388d61308f64b7adffeb62417fc0cb2e739a3f (diff)
downloadChibiOS-Contrib-369b44119ee231b5cb2cbccd7fc0e14dca7314f8.tar.gz
ChibiOS-Contrib-369b44119ee231b5cb2cbccd7fc0e14dca7314f8.tar.bz2
ChibiOS-Contrib-369b44119ee231b5cb2cbccd7fc0e14dca7314f8.zip
Faster jenkins builds
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile46
1 files changed, 30 insertions, 16 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 85df24a..03b2d1e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -21,7 +21,7 @@ exit 0'''
stage('Build STM32') {
agent {
docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
+ image 'fpoussin/jenkins:ubuntu-18.04-chibios'
}
}
@@ -29,9 +29,13 @@ exit 0'''
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
+git clone /var/lib/git/ChibiOS $CH_PATH
+cd $CH_PATH
+git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
+git pull --rebase
+git checkout -b $CH_BRANCH
-cd $CH_PATH/ext
+cd ext
for i in *.7z; do 7z x -y $i; done'''
sh '''export CH_PATH=$WORKSPACE/ChibiOS
export CHC_PATH=$WORKSPACE
@@ -43,7 +47,7 @@ export CHC_PATH=$WORKSPACE
stage('Build NRF51') {
agent {
docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
+ image 'fpoussin/jenkins:ubuntu-18.04-chibios'
}
}
@@ -51,11 +55,14 @@ export CHC_PATH=$WORKSPACE
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
+git clone /var/lib/git/ChibiOS $CH_PATH
+cd $CH_PATH
+git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
+git pull --rebase
+git checkout -b $CH_BRANCH
-cd $CH_PATH/ext
-for i in *.7z; do 7z x -y $i; done
-'''
+cd ext
+for i in *.7z; do 7z x -y $i; done'''
sh '''export CH_PATH=$WORKSPACE/ChibiOS
export CHC_PATH=$WORKSPACE
@@ -67,7 +74,7 @@ export CHC_PATH=$WORKSPACE
stage('Build NRF52') {
agent {
docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
+ image 'fpoussin/jenkins:ubuntu-18.04-chibios'
}
}
@@ -75,11 +82,14 @@ export CHC_PATH=$WORKSPACE
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
+git clone /var/lib/git/ChibiOS $CH_PATH
+cd $CH_PATH
+git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
+git pull --rebase
+git checkout -b $CH_BRANCH
-cd $CH_PATH/ext
-for i in *.7z; do 7z x -y $i; done
-'''
+cd ext
+for i in *.7z; do 7z x -y $i; done'''
sh '''export CH_PATH=$WORKSPACE/ChibiOS
export CHC_PATH=$WORKSPACE
@@ -91,7 +101,7 @@ export CHC_PATH=$WORKSPACE
stage('Build Kinetis') {
agent {
docker {
- image 'fpoussin/jenkins:ubuntu-18.04-arm'
+ image 'fpoussin/jenkins:ubuntu-18.04-chibios'
}
}
@@ -99,9 +109,13 @@ export CHC_PATH=$WORKSPACE
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
+git clone /var/lib/git/ChibiOS $CH_PATH
+cd $CH_PATH
+git remote set-url origin https://github.com/ChibiOS/ChibiOS.git
+git pull --rebase
+git checkout -b $CH_BRANCH
-cd $CH_PATH/ext
+cd ext
for i in *.7z; do 7z x -y $i; done'''
sh '''export CH_PATH=$WORKSPACE/ChibiOS
export CHC_PATH=$WORKSPACE