Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Abstract credential to use for repository
Abstract the credential to use for the repository instead of
assuming it is of the form dockerhub-$maintainer, and set it
by default to be dockerhub-tier.
skoranda committed May 31, 2020
1 parent 7242ae8 commit f0f7ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Jenkinsfile
@@ -2,6 +2,7 @@ pipeline {
agent any
environment {
maintainer = "t"
maintainer_credential_ref = 'dockerhub-tier'
imagename = 'g'
tag = 'l'
version='3.2.5'
@@ -28,7 +29,7 @@ pipeline {
stage('Build and Push') {
steps {
script {
docker.withRegistry('https://registry.hub.docker.com/', "dockerhub-$maintainer") {
docker.withRegistry('https://registry.hub.docker.com/', "$maintainer_credential_ref") {
def image_to_build
def image_dir
def build_arg

0 comments on commit f0f7ca3

Please sign in to comment.