steps: - checkout: self - template: prepare_conda.yml # https://docs.microsoft.com/en-us/azure/devops/pipelines/release/caching?view=azure-devops#pythonanaconda - task: Cache@2 displayName: Use cached Conda environment AzureML_SDK inputs: # Beware of changing the cache key or path independently, safest to change in sync key: 'usr_share_miniconda_azureml_conda | "$(Agent.OS)" | azure-pipelines/azureml-conda-environment.yml' path: /usr/share/miniconda/envs cacheHitVar: CONDA_CACHE_RESTORED - script: conda env create --file azure-pipelines/azureml-conda-environment.yml displayName: Create Conda environment AzureML_SDK condition: eq(variables.CONDA_CACHE_RESTORED, 'false') - bash: | source activate AzureML_SDK python azure-pipelines/cancel_aml_jobs.py displayName: Cancel jobs from previous run env: SUBSCRIPTION_ID: $(InnerEyeDevSubscriptionID) APPLICATION_ID: $(InnerEyeDeepLearningServicePrincipalID) APPLICATION_KEY: $(InnerEyeDeepLearningServicePrincipalKey) BRANCH: $(Build.SourceBranch)