Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .pipelines/azdo-ci-build-train.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ stages:
steps:
- script: |
python $(Build.SourcesDirectory)/ml_service/pipelines/run_train_pipeline.py
# Set AMLPIPELINEID variable for next AML Pipeline task in next job
source $(Build.SourcesDirectory)/tmp.sh
echo "##vso[task.setvariable variable=AMLPIPELINEID;isOutput=true]$AMLPIPELINE_ID"
rm $(Build.SourcesDirectory)/tmp.sh
name: 'getpipelineid'
displayName: 'Get Pipeline ID'
env:
Expand Down
3 changes: 2 additions & 1 deletion code/evaluate/evaluate_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
app_id = os.environ.get('SP_APP_ID')
app_secret = os.environ.get('SP_APP_SECRET')
build_id = os.environ.get('BUILD_BUILDID')
# run_id useful to query previous runs
run_id = "57fee47f-5ae8-441c-bc0c-d4c371f32d70"
service_principal = ServicePrincipalAuthentication(
tenant_id=tenant_id,
service_principal_id=app_id,
Expand All @@ -59,7 +61,6 @@
)
ws = aml_workspace
exp = Experiment(ws, experiment_name)
run_id = "57fee47f-5ae8-441c-bc0c-d4c371f32d70"
else:
sys.path.append(os.path.abspath("./util")) # NOQA: E402
from model_helper import get_model_by_tag
Expand Down
3 changes: 2 additions & 1 deletion code/register/register_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ def main():
app_id = os.environ.get('SP_APP_ID')
app_secret = os.environ.get('SP_APP_SECRET')
build_id = os.environ.get('BUILD_BUILDID')
# run_id useful to query previous runs
run_id = "bd184a18-2ac8-4951-8e78-e290bef3b012"
service_principal = ServicePrincipalAuthentication(
tenant_id=tenant_id,
service_principal_id=app_id,
Expand All @@ -63,7 +65,6 @@ def main():
)
ws = aml_workspace
exp = Experiment(ws, experiment_name)
run_id = "bd184a18-2ac8-4951-8e78-e290bef3b012"
else:
sys.path.append(os.path.abspath("./util")) # NOQA: E402
from model_helper import get_model_by_tag
Expand Down
4 changes: 2 additions & 2 deletions ml_service/pipelines/run_train_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def main():
savePIDcmd = 'echo "export AMLPIPELINE_ID=$amlpipeline_id" >tmp.sh'
os.system(savePIDcmd)

# Set this to True for local development or
# if not using Azure DevOps pipeline execution task
# Set this to True for local development or if NOT
# using Azure DevOps Azure ML agentless pipeline execution task
skip_train_execution = True
if(skip_train_execution is False):
pipeline_parameters = {"model_name": e.model_name}
Expand Down