diff --git a/.Jenkinsfile b/.Jenkinsfile index 67f84d95..3f591b98 100644 --- a/.Jenkinsfile +++ b/.Jenkinsfile @@ -21,9 +21,11 @@ pipeline { def major = versions[0] def minor = versions[0] + '.' + versions[1] def patch = version.trim() - im.push(major) - im.push(minor) - im.push(patch) + docker.withRegistry('', 'hub.docker') { + im.push(major) + im.push(minor) + im.push(patch) + } } } } @@ -38,7 +40,9 @@ pipeline { im.inside { sh 'echo Test needed' } - im.push('latest') + docker.withRegistry('', 'hub.docker') { + im.push('latest') + } } } }