Change credentials
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
testing/ogcore-api/pipeline/head There was a failure building this commit
Details
parent
8b8c57f8a4
commit
bb37c7aea0
|
|
@ -5,7 +5,6 @@ pipeline {
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
DOCKER_REPO = "opengnsys"
|
DOCKER_REPO = "opengnsys"
|
||||||
DOCKER_CREDENTIALS = credentials('docker-hub-credentials')
|
|
||||||
DOCKER_TAG = "${env.BUILD_NUMBER}"
|
DOCKER_TAG = "${env.BUILD_NUMBER}"
|
||||||
DOCKER_IMAGE_NAME = "ogcore"
|
DOCKER_IMAGE_NAME = "ogcore"
|
||||||
BRANCH_NAME = "${env.BRANCH_NAME}"
|
BRANCH_NAME = "${env.BRANCH_NAME}"
|
||||||
|
|
@ -65,7 +64,7 @@ pipeline {
|
||||||
stage ("Publish Image") {
|
stage ("Publish Image") {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
docker.withRegistry('https://index.docker.io/v1/', "${DOCKER_CREDENTIALS}") {
|
docker.withRegistry('https://index.docker.io/v1/', 'docker-hub-credentials') {
|
||||||
docker.image("${DOCKER_IDENTITY}").push()
|
docker.image("${DOCKER_IDENTITY}").push()
|
||||||
docker.image("${DOCKER_IDENTITY_NGINX}").push()
|
docker.image("${DOCKER_IDENTITY_NGINX}").push()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue