Explorar el Código

更改文件

master
fyf hace 2 años
padre
commit
d01110198a
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  1. +3
    -3
      Jenkinsfile
  2. +1
    -1
      k8s_datav.yaml

+ 3
- 3
Jenkinsfile Ver fichero

@@ -74,7 +74,7 @@ pipeline{
echo "3.Build Docker Image Stage"
if(params.operation=='develop')
{
sh "docker build -t 111.9.47.105:10249/bpa/datav:${build_tag} ."
sh "docker build -t 10.2.1.24:10242/bpa/datav:${build_tag} ."
}
}
}
@@ -86,10 +86,10 @@ pipeline{
script{
echo "4.Push Docker Image Stage"
withCredentials([usernamePassword(credentialsId: 'harbor', passwordVariable: 'harborPassword', usernameVariable: 'harborUser')]) {
sh "docker login -u ${harborUser} -p ${harborPassword} 111.9.47.105:10249"
sh "docker login -u ${harborUser} -p ${harborPassword} 10.2.1.24:10242"
if(params.operation=='develop')
{
sh "docker push 111.9.47.105:10249/bpa/datav:${build_tag}"
sh "docker push 10.2.1.24:10242/bpa/datav:${build_tag}"
}
}
}


+ 1
- 1
k8s_datav.yaml Ver fichero

@@ -15,7 +15,7 @@ spec:
app: datav
spec:
containers:
- image: 111.9.47.105:10249/bpa/datav:<BUILD_TAG>
- image: 10.2.1.24:10240/bpa/datav:<BUILD_TAG>
imagePullPolicy: IfNotPresent
name: datav
env:


Cargando…
Cancelar
Guardar