mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
Added Jenkinsfile
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -3,8 +3,13 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Get coriolis-data') {
|
stage('Get coriolis-data') {
|
||||||
steps {
|
steps {
|
||||||
sh '''cd ..
|
sh '''YES=`echo $GIT_BRANCH | awk -F / \'{print $2}\'`
|
||||||
git clone https://github.com/edcd/coriolis-data.git'''
|
export BRANCH=`git rev-parse --abbrev-ref $YES`
|
||||||
|
rm -rf $WORKSPACE/../coriolis-data
|
||||||
|
git clone https://github.com/edcd/coriolis-data.git $WORKSPACE/../coriolis-data
|
||||||
|
cd ../coriolis-data
|
||||||
|
git fetch --all
|
||||||
|
git checkout $BRANCH'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user