diff --git a/Jenkinsfile b/Jenkinsfile index d23c2a5..30e3119 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,11 +56,11 @@ stage('build and push image to gitlab') { withCredentials([usernamePassword(credentialsId: 'Jenkins-gitea', passwordVariable: 'pw', usernameVariable: 'un')]) { sh ''' set +xe - docker login gitea.confdroid.com -u $un -p $pw - docker build --network=host -t gitea.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4 . - docker build --network=host -t gitea.confdroid.com/confdroid/confdroid_pgbouncer:latest . - docker push gitea.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4 - docker push gitea.confdroid.com/confdroid/confdroid_pgbouncer:latest + docker login sourcecode.confdroid.com -u $un -p $pw + docker build --network=host -t sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4 . + docker build --network=host -t sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:latest . + docker push sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:1.1.4 + docker push sourcecode.confdroid.com/confdroid/confdroid_pgbouncer:latest ''' } } @@ -89,7 +89,7 @@ stage('build and push image to gitlab') { sh ''' git checkout master git pull origin master - git remote add master https://gitea.confdroid.com/confdroid/confdroid_pgbouncer.git + git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_pgbouncer.git git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \ push master --mirror '''