Azure 管道跳过 DownloadSecureFile 任务?

问题描述 投票:0回答:1

我创建了这个

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
步骤,它们显示在作业中,所以我确信代码更改已被推送。只是中间的步骤被跳过了?

azure azure-pipelines devops pipeline
1个回答
0
投票

DownloadSecureFile@1
任务不会被跳过,而是在初始化后立即作为预作业执行。

© www.soinside.com 2019 - 2024. All rights reserved.