English 中文(简体)
管道微秒 档案工作
原标题:Azure pipeline skips DownloadSecureFile task?

我创建了这一<代码>azure-lines-regression.yaml文档,以管理我的管道中的任务:

...... 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

In the pipeline job there are all the steps except the Download env file step. I deliberately created the List contents 1 and List contents 2 steps and they showed in the job, so I m sure the code change was pushed. Just the step in the middle was skipped? enter image description here

问题回答

The DownloadSecureFile@1 task is not skipped but executed as a pre-job right after the initialization. enter image description here

下载后,可使用<代码> 姓名。 任务中确定的价值,即把这条道路引向代理人机器上的安全档案。 例如,如果任务的名称是,其途径可在管道中作为$(mySecureFile.secureFilePath)

- task: DownloadSecureFile@1
  name: mySecureFile
  displayName:  Download env file 
  inputs:
    secureFile:  {secure file} 

- script: |
    echo The path of my secure file is : $(mySecureFile.secureFilePath)

产出如下:

enter image description here





相关问题
Sitecore not resolving rich text editor URLS in page renders

We re having issues inserting links into rich text in Sitecore 6.1.0. When a link to a sitecore item is inserted, it is outputted as: http://domain/~/link.aspx?_id=8A035DC067A64E2CBBE2662F6DB53BC5&...

Should I parse git status or use gitsharp?

I d like to integrate git into production pipeline to stage 3dsmax files. While it is alright to work with git through TortoiseGit, I d like to communicate with it from the Maxscript to add custom ...

XNA: Dynamic content loading without Game Studio installed?

I d like to enable my game to load content (such as a model, a jpg file, etc.) during run-time and display them. I looked at the sample on XNA website (http://creators.xna.com/en-US/sample/...

C# Stream Design Question

I have an appliction right now that is a pipeline design. In one the first stage it reads some data and files into a Stream. There are some intermediate stages that do stuff to the stream of data. And ...

热门标签