[20.02.20] Dockerfile - pipeline testing

This commit is contained in:
andrewso 2020-02-20 16:45:52 +00:00
parent f59f7be58a
commit ebc5b142ae

View File

@ -66,6 +66,8 @@ try {
stage('Tag Repository') { stage('Tag Repository') {
sh "ls -la"
withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) { withDockerServer([uri: "${env.DOCKER_REPOSITORY_TCP}"]) {
withDockerRegistry([credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) { withDockerRegistry([credentialsId: 'Registry', url: "${env.DOCKER_REPOSITORY_URL}"]) {
def image = docker.build("${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}") def image = docker.build("${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}")