Ver código fonte

更新jenkin

master
fyf 2 anos atrás
pai
commit
5903b9004f
1 arquivos alterados com 3 adições e 3 exclusões
  1. +3
    -3
      Jenkinsfile

+ 3
- 3
Jenkinsfile Ver arquivo

@@ -74,7 +74,7 @@ pipeline{
echo "3.Build Docker Image Stage"
if(params.operation=='develop')
{
sh "docker build -t 10.2.1.24:10242/bpa/datav:${build_tag} ."
sh "docker build -t 111.9.47.105:10249/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} 10.2.1.24:10242"
sh "docker login -u ${harborUser} -p ${harborPassword} 111.9.47.105:10249"
if(params.operation=='develop')
{
sh "docker push 10.2.1.24:10242/bpa/datav:${build_tag}"
sh "docker push 111.9.47.105:10249/bpa/datav:${build_tag}"
}
}
}


Carregando…
Cancelar
Salvar