aboutsummaryrefslogtreecommitdiffstats
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorFabien Poussin <fabien.poussin@gmail.com>2019-03-07 16:06:33 +0100
committerFabien Poussin <fabien.poussin@gmail.com>2019-03-07 16:06:33 +0100
commit77692a659010a32c5559f665a65ba761d0f77ac0 (patch)
tree2e35875e0da5ac19dc79b0b7737019b4159a9ca6 /Jenkinsfile
parented39bf01d8606c799dcfeec2f5437d2610c12ec6 (diff)
downloadChibiOS-Contrib-77692a659010a32c5559f665a65ba761d0f77ac0.tar.gz
ChibiOS-Contrib-77692a659010a32c5559f665a65ba761d0f77ac0.tar.bz2
ChibiOS-Contrib-77692a659010a32c5559f665a65ba761d0f77ac0.zip
Added Jenkinsfile
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 2e32a9f..0c790d0 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -20,19 +20,21 @@ pipeline {
}
steps {
- sh '''BRANCH=stable_18.2.x
-CH_PATH=$WORKSPACE/ChibiOS
-
-arm-none-eabi-gcc -v
+ sh '''arm-none-eabi-gcc -v
rm -rf $CH_PATH
-git clone -b $BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git $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 'CH_PATH=$WORKSPACE/ChibiOS CHC_PATH=$WORKSPACE ./tools/chbuild.sh ./testhal/STM32/'
- sh 'CH_PATH=$WORKSPACE/ChibiOS CHC_PATH=$WORKSPACE ./tools/chbuild.sh ./demos/STM32/'
+ sh './tools/chbuild.sh ./testhal/STM32/'
+ sh './tools/chbuild.sh ./demos/STM32/'
}
}
}
+ environment {
+ CH_BRANCH = 'stable_18.2.x'
+ CH_PATH = '$WORKSPACE/ChibiOS'
+ CHC_PATH = '$WORKSPACE'
+ }
} \ No newline at end of file