@@ -4,7 +4,7 @@ parameters:
44 default : ' ml'
55 - name : Artifacts
66 type : object
7- default :
7+ default :
88 - name : azure-ai-ml
99 safeName : azureaiml
1010 skipVerifyChangeLog : true
1717 displayName : " Build, Upload, and PR Azure ML Changeset"
1818 timeoutInMinutes : 90
1919 variables :
20- - template : ../variables/globals.yml
20+ - name : StorageAccountName
21+ value : ' docsupport'
22+ - template : /eng/pipelines/templates/variables/globals.yml
2123
2224 pool :
2325 name : azsdk-pool-mms-ubuntu-2004-general
3941 versionSpec : $(PythonVersion)
4042
4143 - script : |
42- python -m pip install setuptools==58.3.0
43- python -m pip install -r eng/ci_tools.txt
44- python -m pip install -r eng/ml_sample_tools.txt
44+ python -m pip install tools/azure-sdk-tools[build]
45+ python -m pip install azure-identity
46+ python -m pip install azure-storage-blob
4547 displayName: 'Prep Environment'
4648
4749 - pwsh : |
@@ -61,20 +63,24 @@ jobs:
6163 Get-ChildItem "$(mlrepo)" -R
6264 displayName: Output Staging Directory
6365
64- - task : PythonScript@0
65- displayName : ' Generate Samples Repo Changes'
66- env :
67- BLOB_CONNECTION_STRING : $(azure-sdk-docsupport-cs)
66+ - pwsh : |
67+ cat "$(mlrepo)/sdk/python/setup.sh"
68+ displayName: Display setup.sh pre-update
69+
70+ - task : AzurePowerShell@5
71+ displayName : Generate Samples Repo Changes
6872 inputs :
69- scriptPath : ' scripts/devops_tasks/generate_ml_sample_update.py'
70- arguments : >-
71- --ml-repo="$(mlrepo)"
72- --ml-wheel-folder="$(Build.ArtifactStagingDirectory)/azure-ai-ml"
73- --build-id="$(Build.BuildId)"
73+ azureSubscription : ' Azure SDK Artifacts'
74+ azurePowerShellVersion : LatestVersion
75+ pwsh : true
76+ ScriptType : InlineScript
77+ Inline : |
78+ python scripts/devops_tasks/generate_ml_sample_update.py --ml-repo "$(mlrepo)" --ml-wheel-folder "$(Build.ArtifactStagingDirectory)/azure-ai-ml" --build-id "$(Build.BuildId)" --storage-account-name "$(StorageAccountName)";
79+ exit $LASTEXITCODE;
7480
7581 - pwsh : |
7682 cat "$(mlrepo)/sdk/python/setup.sh"
77- displayName: Display Updated setup.sh
83+ displayName: Display setup.sh post-update
7884
7985 - template : /eng/common/pipelines/templates/steps/create-pull-request.yml
8086 parameters :
0 commit comments