File tree Expand file tree Collapse file tree
.azuredevops/pipelines/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ stages:
2525 displayName : ' Deploy ${{ parameters.appName }}'
2626 steps :
2727 - checkout : ${{ parameters.repository }}
28+ path : ${{ parameters.appName }}
2829
2930 - task : AzureCLI@2
3031 displayName : ' Deploy infrastructure'
@@ -34,7 +35,11 @@ stages:
3435 scriptLocation : inlineScript
3536 inlineScript : |
3637 set -e
37- cd "$(Build.SourcesDirectory)/${{ parameters.repository }}"
38+ echo "Build.SourcesDirectory: $(Build.SourcesDirectory)"
39+ echo "Agent.BuildDirectory: $(Agent.BuildDirectory)"
40+ ls -la "$(Agent.BuildDirectory)/s/" || true
41+ ls -la "$(Agent.BuildDirectory)/" || true
42+ cd "$(Agent.BuildDirectory)/${{ parameters.appName }}"
3843 ls -la infra/
3944 az group create \
4045 --name ${{ parameters.resourceGroup }} \
@@ -55,7 +60,7 @@ stages:
5560 scriptLocation : inlineScript
5661 inlineScript : |
5762 set -e
58- cd "$(Build.SourcesDirectory )/${{ parameters.repository }}"
63+ cd "$(Agent.BuildDirectory )/${{ parameters.appName }}"
5964 ACR_NAME=$(az deployment group show \
6065 --resource-group ${{ parameters.resourceGroup }} \
6166 --name infra-deploy \
You can’t perform that action at this time.
0 commit comments