更新 'Jenkinsfile'

main
newrain001 11 months ago
parent b567531b86
commit 9e8b10a357
  1. 4
      Jenkinsfile

4
Jenkinsfile vendored

@ -82,8 +82,8 @@ spec:
steps {
container('kubectl') {
sh """
sed -i "s/REPLICAS/${env.REPLICAS}/;s/HARBOR_HOST/${env.HARBOR_HOST}/;s/NAMESPACE_NAME/${env.NAMESPACE_NAME}/;s/REPOSITORY_NAME/${env.REPOSITORY_NAME}/;s/TAG/${env.TAG}/" ${YAML_PATH}
kubectl apply -f ${YAML_PATH}
sed -i "s/REPLICAS/${env.REPLICAS}/;s/HARBOR_HOST/${env.HARBOR_HOST}/;s/NAMESPACE_NAME/${env.NAMESPACE_NAME}/;s/REPOSITORY_NAME/${env.REPOSITORY_NAME}/;s/TAG/${env.TAG}/" ${env.YAML_PATH}
kubectl apply -f ${env.YAML_PATH}
"""
}

Loading…
Cancel
Save