我创建了这个
azure-pipelines-regression.yaml
文件来在我的 Azure 管道中运行任务,它具有以下步骤:
...... other scripts
- task: NodeTool@0
inputs:
versionSpec: '18'
displayName: 'Install Node.js'
- script: |
cd /home/vsts/work/1/s
npm install --legacy-peer-deps
displayName: 'npm install'
- script: |
cd /home/vsts/work/1/s
dir
displayName: 'List contents 1'
- task: DownloadSecureFile@1
displayName: 'Download env file'
inputs:
secureFile: '.env.local'
- script: |
cd /home/vsts/work/1/s
dir
displayName: 'List contents 2'
...... other scripts
在管道作业中,有除
Download env file
步骤之外的所有步骤。我故意创建了 List contents 1
和 List contents 2
步骤,它们显示在作业中,所以我确信代码更改已被推送。只是中间的步骤被跳过了?