업데이트 'pipline_script.jenkinsfile'

This commit is contained in:
변정훈
2023-03-14 04:53:44 +00:00
parent 16e2640343
commit 5ae115ba96

View File

@@ -38,18 +38,18 @@ pipeline {
git config --global user.name "junghun_test"
git clone https://root:platformps@gitlab.dev-cloudps.com/root/appyaml.git
'''
dir(appyaml) {
dir('appyaml') {
sh 'ls -l'
sh 'pwd'
sh '''
sh """
rm -rf 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 status
git commit -m 'Images & Version Changed'
git push -u origin master
'''
"""
}
}
}