Skip to content

Commit b9c4e74

Browse files
committed
bug: fixed the variable name
1 parent 47214d9 commit b9c4e74

File tree

1 file changed

+76
-76
lines changed

1 file changed

+76
-76
lines changed

azure-pipelines.yml

Lines changed: 76 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
pool:
2-
vmImage: 'Ubuntu 16.04'
3-
#Your build pipeline references a secret variable named ‘sp_username’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
4-
#Your build pipeline references a secret variable named ‘sp_password’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
5-
#Your build pipeline references a secret variable named ‘sp_tenantid’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
6-
#Your build pipeline references a secret variable named ‘subscription_id’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
7-
8-
variables:
9-
- group: AzureKeyVaultSecrets
10-
11-
trigger:
12-
- master
13-
- releases/*
14-
- develop
15-
16-
steps:
17-
- task: UsePythonVersion@0
18-
inputs:
19-
versionSpec: '3.6'
20-
architecture: 'x64'
21-
22-
- task: Bash@3
23-
displayName: 'Install Requirements'
24-
inputs:
25-
targetType: filePath
26-
filePath: 'environment_setup/install_requirements.sh'
27-
workingDirectory: 'environment_setup'
28-
29-
- script: |
30-
az login --service-principal -u $(spidentity) -p $(spsecret) --tenant $(sptenant)
31-
32-
displayName: 'Login to Azure'
33-
34-
- script: |
35-
sed -i 's#"subscription_id": "<>"#"subscription_id": "$(subscription_id)"#g' aml_config/config.json
36-
37-
displayName: 'replace subscription value'
38-
39-
- script: 'pytest tests/unit/data_test.py'
40-
displayName: 'Data Quality Check'
41-
42-
- script: 'python aml_service/00-WorkSpace.py'
43-
displayName: 'Get or Create Workspace'
44-
45-
- script: 'python aml_service/03-AttachAmlCluster.py'
46-
displayName: 'Create AML Compute Cluster'
47-
48-
- script: 'python aml_service/04-AmlPipelines.py'
49-
displayName: 'Create and Test AML Pipeline'
50-
51-
- script: 'python aml_service/04-AmlPipelines.py --pipeline_action publish'
52-
displayName: 'Publish AML Pipeline as Endpoint'
53-
54-
- task: CopyFiles@2
55-
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
56-
inputs:
57-
SourceFolder: '$(Build.SourcesDirectory)'
58-
TargetFolder: '$(Build.ArtifactStagingDirectory)'
59-
Contents: '**'
60-
61-
- task: PublishBuildArtifacts@1
62-
displayName: 'Publish Artifact: devops-for-ai'
63-
inputs:
64-
ArtifactName: 'devops-for-ai'
65-
publishLocation: 'container'
66-
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
67-
TargetPath: '$(Build.ArtifactStagingDirectory)'
68-
69-
- task: PublishBuildArtifacts@1
70-
displayName: 'Publish Artifact: AML Pipeline Config'
71-
inputs:
72-
ArtifactName: 'devops-for-ai-aml-pipeline'
73-
publishLocation: 'container'
74-
pathtoPublish: '$(Build.ArtifactStagingDirectory)/aml_config/pipeline_config.json'
75-
TargetPath: '$(Build.ArtifactStagingDirectory)/aml_config/pipeline_config.json'
76-
1+
pool:
2+
vmImage: 'Ubuntu 16.04'
3+
#Your build pipeline references a secret variable named ‘sp_username’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
4+
#Your build pipeline references a secret variable named ‘sp_password’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
5+
#Your build pipeline references a secret variable named ‘sp_tenantid’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
6+
#Your build pipeline references a secret variable named ‘subscription_id’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
7+
8+
variables:
9+
- group: AzureKeyVaultSecrets
10+
11+
trigger:
12+
- master
13+
- releases/*
14+
- develop
15+
16+
steps:
17+
- task: UsePythonVersion@0
18+
inputs:
19+
versionSpec: '3.6'
20+
architecture: 'x64'
21+
22+
- task: Bash@3
23+
displayName: 'Install Requirements'
24+
inputs:
25+
targetType: filePath
26+
filePath: 'environment_setup/install_requirements.sh'
27+
workingDirectory: 'environment_setup'
28+
29+
- script: |
30+
az login --service-principal -u $(spidentity) -p $(spsecret) --tenant $(sptenant)
31+
32+
displayName: 'Login to Azure'
33+
34+
- script: |
35+
sed -i 's#"subscription_id": "<>"#"subscription_id": "$(subscriptionid)"#g' aml_config/config.json
36+
37+
displayName: 'replace subscription value'
38+
39+
- script: 'pytest tests/unit/data_test.py'
40+
displayName: 'Data Quality Check'
41+
42+
- script: 'python aml_service/00-WorkSpace.py'
43+
displayName: 'Get or Create Workspace'
44+
45+
- script: 'python aml_service/03-AttachAmlCluster.py'
46+
displayName: 'Create AML Compute Cluster'
47+
48+
- script: 'python aml_service/04-AmlPipelines.py'
49+
displayName: 'Create and Test AML Pipeline'
50+
51+
- script: 'python aml_service/04-AmlPipelines.py --pipeline_action publish'
52+
displayName: 'Publish AML Pipeline as Endpoint'
53+
54+
- task: CopyFiles@2
55+
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
56+
inputs:
57+
SourceFolder: '$(Build.SourcesDirectory)'
58+
TargetFolder: '$(Build.ArtifactStagingDirectory)'
59+
Contents: '**'
60+
61+
- task: PublishBuildArtifacts@1
62+
displayName: 'Publish Artifact: devops-for-ai'
63+
inputs:
64+
ArtifactName: 'devops-for-ai'
65+
publishLocation: 'container'
66+
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
67+
TargetPath: '$(Build.ArtifactStagingDirectory)'
68+
69+
- task: PublishBuildArtifacts@1
70+
displayName: 'Publish Artifact: AML Pipeline Config'
71+
inputs:
72+
ArtifactName: 'devops-for-ai-aml-pipeline'
73+
publishLocation: 'container'
74+
pathtoPublish: '$(Build.ArtifactStagingDirectory)/aml_config/pipeline_config.json'
75+
TargetPath: '$(Build.ArtifactStagingDirectory)/aml_config/pipeline_config.json'
76+

0 commit comments

Comments
 (0)