Skip to content
This repository was archived by the owner on Jan 4, 2024. It is now read-only.

Commit 10a50e9

Browse files
author
Build Pipeline
committed
update to use http (direct to nexus server)
1 parent c05367e commit 10a50e9

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.pipelines/build-model-container-image.Jenkinsfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@ pipeline {
6262

6363
sh '''#!/bin/bash -ex
6464
az acr login --name $ML_CONTAINER_REGISTRY
65-
docker build -t $NEXUS_DOCKER_REGISTRY_URL/$IMAGE_NAME:$BUILD_ID ./diabetes_regression/scoring/$ML_IMAGE_FOLDER/
65+
docker build -t $NEXUS_DOCKER_REPO_HTTP_URL/$IMAGE_NAME:$BUILD_ID ./diabetes_regression/scoring/$ML_IMAGE_FOLDER/
6666
'''
6767

6868
withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: "${NEXUS_DOCKER_CREDENTIALS_NAME}",
6969
usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD']]) {
7070

7171
sh '''#!/bin/bash -ex
72-
docker login -u $USERNAME --password $PASSWORD https://$NEXUS_DOCKER_REGISTRY_URL
73-
docker push $NEXUS_DOCKER_REGISTRY_URL/$IMAGE_NAME:$BUILD_ID
72+
docker login -u $USERNAME --password $PASSWORD http://$NEXUS_DOCKER_REPO_HTTP_URL
73+
docker push $NEXUS_DOCKER_REPO_HTTP_URL/$IMAGE_NAME:$BUILD_ID
74+
7475
'''
7576
}
7677
}

0 commit comments

Comments
 (0)