Added Jenkinsfile

This commit is contained in:
Fabien Poussin 2019-03-07 17:25:16 +01:00
parent 7c02ec8dea
commit 7a7d472bb3
1 changed files with 12 additions and 5 deletions

17
Jenkinsfile vendored
View File

@ -11,7 +11,9 @@ pipeline {
steps { steps {
sh '''echo $CH_BRANCH sh '''echo $CH_BRANCH
echo $CH_PATH echo $CH_PATH
echo $CHC_PATH''' echo $CHC_PATH
exit 0'''
} }
} }
stage('Build STM32') { stage('Build STM32') {
@ -29,14 +31,19 @@ git clone -b $CH_BRANCH --single-branch https://github.com/ChibiOS/ChibiOS.git $
cd $CH_PATH/ext cd $CH_PATH/ext
for i in *.7z; do 7z x -y $i; done''' for i in *.7z; do 7z x -y $i; done'''
sh './tools/chbuild.sh ./testhal/STM32/' sh '''export CH_PATH=$WORKSPACE/ChibiOS
sh './tools/chbuild.sh ./demos/STM32/' 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 { environment {
CH_BRANCH = 'stable_18.2.x' CH_BRANCH = 'stable_18.2.x'
CH_PATH = '$PWD/ChibiOS' CH_PATH = 'ChibiOS'
CHC_PATH = '$PWD'
} }
} }