From 7a7d472bb3915d52d815eb507ed6ebd6f4681a44 Mon Sep 17 00:00:00 2001 From: Fabien Poussin Date: Thu, 7 Mar 2019 17:25:16 +0100 Subject: Added Jenkinsfile --- Jenkinsfile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index 1d23778..d0dea6d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,9 @@ pipeline { steps { sh '''echo $CH_BRANCH echo $CH_PATH -echo $CHC_PATH''' +echo $CHC_PATH + +exit 0''' } } stage('Build STM32') { @@ -29,14 +31,19 @@ git clone -b $CH_BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git $ cd $CH_PATH/ext for i in *.7z; do 7z x -y $i; done''' - sh './tools/chbuild.sh ./testhal/STM32/' - sh './tools/chbuild.sh ./demos/STM32/' + sh '''export CH_PATH=$WORKSPACE/ChibiOS +export CHC_PATH=$WORKSPACE + +./tools/chbuild.sh ./testhal/STM32/''' + sh '''export CH_PATH=$WORKSPACE/ChibiOS +export CHC_PATH=$WORKSPACE + +./tools/chbuild.sh ./demos/STM32/''' } } } environment { CH_BRANCH = 'stable_18.2.x' - CH_PATH = '$PWD/ChibiOS' - CHC_PATH = '$PWD' + CH_PATH = 'ChibiOS' } } \ No newline at end of file -- cgit v1.2.3