Skip to content

Commit 0180182

Browse files
author
j-so
committed
print output
1 parent 718f9c7 commit 0180182

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.pipelines/diabetes_regression-package-model-template.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ steps:
2727
set -e # fail on error
2828
2929
# Create model package using CLI
30-
IMAGE_LOCATION=$(\
30+
PACKAGE_OUTPUT=$(\
3131
az ml model package --workspace-name $(WORKSPACE_NAME) -g $(RESOURCE_GROUP) \
3232
--model '${{ parameters.modelId }}' \
3333
--entry-script '${{ parameters.scoringScriptPath }}' \
3434
--cf '${{ parameters.condaFilePath }}' \
3535
-v \
36-
--rt python --query 'location' -o tsv | tail -1)
36+
--rt python --query 'location' -o tsv)
37+
38+
# Print output
39+
echo $PACKAGE_OUTPUT
3740
3841
# Set environment variable
39-
echo $IMAGE_LOCATION
42+
IMAGE_LOCATION=$($PACKAGE_OUTPUT | tail -1)
4043
echo "##vso[task.setvariable variable=IMAGE_LOCATION]$IMAGE_LOCATION"

0 commit comments

Comments
 (0)