Skip to content

Commit c7845aa

Browse files
author
j-so
committed
fail on deploy error'
1 parent bae4b61 commit c7845aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.pipelines/diabetes_regression-cd-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ stages:
5757
scriptLocation: inlineScript
5858
workingDirectory: $(Build.SourcesDirectory)/$(SOURCES_DIR_TRAIN)/scoring
5959
inlineScript: |
60+
set -e # fail on error
61+
6062
az ml model deploy --name $(ACI_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(MODEL_VERSION)' \
61-
--ic inference_config.yml \
6263
--dc deployment_config_aci.yml \
6364
-g $(RESOURCE_GROUP) --workspace-name $(WORKSPACE_NAME) \
6465
--overwrite -v

0 commit comments

Comments
 (0)