File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,10 @@ stages:
47
47
steps :
48
48
- script : |
49
49
python $(Build.SourcesDirectory)/ml_service/pipelines/run_train_pipeline.py
50
+ # Set AMLPIPELINEID variable for next AML Pipeline task in next job
50
51
source $(Build.SourcesDirectory)/tmp.sh
51
52
echo "##vso[task.setvariable variable=AMLPIPELINEID;isOutput=true]$AMLPIPELINE_ID"
53
+ rm $(Build.SourcesDirectory)/tmp.sh
52
54
name: 'getpipelineid'
53
55
displayName: 'Get Pipeline ID'
54
56
env:
Original file line number Diff line number Diff line change 46
46
app_id = os .environ .get ('SP_APP_ID' )
47
47
app_secret = os .environ .get ('SP_APP_SECRET' )
48
48
build_id = os .environ .get ('BUILD_BUILDID' )
49
+ # run_id useful to query previous runs
50
+ run_id = "57fee47f-5ae8-441c-bc0c-d4c371f32d70"
49
51
service_principal = ServicePrincipalAuthentication (
50
52
tenant_id = tenant_id ,
51
53
service_principal_id = app_id ,
59
61
)
60
62
ws = aml_workspace
61
63
exp = Experiment (ws , experiment_name )
62
- run_id = "57fee47f-5ae8-441c-bc0c-d4c371f32d70"
63
64
else :
64
65
sys .path .append (os .path .abspath ("./util" )) # NOQA: E402
65
66
from model_helper import get_model_by_tag
Original file line number Diff line number Diff line change @@ -50,6 +50,8 @@ def main():
50
50
app_id = os .environ .get ('SP_APP_ID' )
51
51
app_secret = os .environ .get ('SP_APP_SECRET' )
52
52
build_id = os .environ .get ('BUILD_BUILDID' )
53
+ # run_id useful to query previous runs
54
+ run_id = "bd184a18-2ac8-4951-8e78-e290bef3b012"
53
55
service_principal = ServicePrincipalAuthentication (
54
56
tenant_id = tenant_id ,
55
57
service_principal_id = app_id ,
@@ -63,7 +65,6 @@ def main():
63
65
)
64
66
ws = aml_workspace
65
67
exp = Experiment (ws , experiment_name )
66
- run_id = "bd184a18-2ac8-4951-8e78-e290bef3b012"
67
68
else :
68
69
sys .path .append (os .path .abspath ("./util" )) # NOQA: E402
69
70
from model_helper import get_model_by_tag
Original file line number Diff line number Diff line change @@ -45,8 +45,8 @@ def main():
45
45
savePIDcmd = 'echo "export AMLPIPELINE_ID=$amlpipeline_id" >tmp.sh'
46
46
os .system (savePIDcmd )
47
47
48
- # Set this to True for local development or
49
- # if not using Azure DevOps pipeline execution task
48
+ # Set this to True for local development or if NOT
49
+ # using Azure DevOps Azure ML agentless pipeline execution task
50
50
skip_train_execution = True
51
51
if (skip_train_execution is False ):
52
52
pipeline_parameters = {"model_name" : e .model_name }
You can’t perform that action at this time.
0 commit comments