업데이트 'pipline_script.jenkinsfile'
This commit is contained in:
@@ -38,18 +38,18 @@ pipeline {
|
|||||||
git config --global user.name "junghun_test"
|
git config --global user.name "junghun_test"
|
||||||
git clone https://root:platformps@gitlab.dev-cloudps.com/root/appyaml.git
|
git clone https://root:platformps@gitlab.dev-cloudps.com/root/appyaml.git
|
||||||
'''
|
'''
|
||||||
dir(appyaml) {
|
dir('appyaml') {
|
||||||
sh 'ls -l'
|
sh 'ls -l'
|
||||||
sh 'pwd'
|
sh 'pwd'
|
||||||
sh '''
|
sh """
|
||||||
rm -rf app.yaml
|
rm -rf app.yaml
|
||||||
cp app.yaml.template app.yaml
|
cp app.yaml.template app.yaml
|
||||||
sed -i 's@{{URL}}@harbor.dev-cloudps.com/reviews/reviews:${BUILD_NUMBER}@' app.yaml
|
sed -i 's|{{URL}}|harbor.dev-cloudps.com/reviews/reviews:${BUILD_NUMBER}|' app.yaml
|
||||||
git add *
|
git add *
|
||||||
git status
|
git status
|
||||||
git commit -m 'Images & Version Changed'
|
git commit -m 'Images & Version Changed'
|
||||||
git push -u origin master
|
git push -u origin master
|
||||||
'''
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user