Pārlūkot izejas kodu

更新 'Jenkinsfile'

tmp
bpa pirms 8 mēnešiem
vecāks
revīzija
8c9a53e1da
1 mainītis faili ar 8 papildinājumiem un 8 dzēšanām
  1. +8
    -8
      Jenkinsfile

+ 8
- 8
Jenkinsfile Parādīt failu

@@ -16,7 +16,7 @@ pipeline{
choice(
description: 'EIP环境',
name: 'environment',
choices: ['dev1']
choices: ['saasdev1']
)

choice(
@@ -28,7 +28,7 @@ pipeline{
choice(
description: '是否下载包',
name: 'isDownloadPackage',
choices: ['是','否']
choices: ['否','是']
)

string(
@@ -86,7 +86,7 @@ pipeline{
sh "rm -rf ./dist/*"
sh "npm run build"
}
sh "docker build -t 10.2.1.24:10242/bpa/kitchenweb:${build_tag} ."
sh "docker build -t 10.2.1.24:10242/bpa/kitchenmanageweb:${build_tag} ."
}
}
}
@@ -105,7 +105,7 @@ pipeline{
sh "docker login -u ${harborUser} -p ${harborPassword} 10.2.1.24:10242"
if(params.operation=='develop')
{
sh "docker push 10.2.1.24:10242/bpa/kitchenweb:${build_tag}"
sh "docker push 10.2.1.24:10242/bpa/kitchenmanageweb:${build_tag}"
}
}
}
@@ -127,10 +127,10 @@ pipeline{
// /root/eip/web/shell/linux-eipweb.install.sh eipweb ${build_tag} 80
// """

sh "sed -i 's/<BUILD_TAG>/${build_tag}/' k8s_kitchenweb.yaml"
sh "sed -i 's/<BRANCH_NAME>/${env.BRANCH_NAME}/' k8s_kitchenweb.yaml"
sh "sed -i 's/<NAMESPACES>/${params.environment}/' k8s_kitchenweb.yaml"
sh "kubectl apply -f k8s_kitchenweb.yaml --record"
sh "sed -i 's/<BUILD_TAG>/${build_tag}/' k8s_kitchenmanageweb.yaml"
sh "sed -i 's/<BRANCH_NAME>/${env.BRANCH_NAME}/' k8s_kitchenmanageweb.yaml"
sh "sed -i 's/<NAMESPACES>/${params.environment}/' k8s_kitchenmanageweb.yaml"
sh "kubectl apply -f k8s_kitchenmanageweb.yaml "
}




Notiek ielāde…
Atcelt
Saglabāt