Is it able to ignore/disable the first step Get source in vNext Build?

后端 未结 2 1088
暖寄归人
暖寄归人 2020-11-27 07:07

Here is our situation-- sometimes we need to run a vNext build without needing to pull any source code from TFS server.

But we don\'t want to change the workspace m

相关标签:
2条回答
  • 2020-11-27 07:40

    I tried using agent.source.skip = true (instead of Build.SyncSources = false),

    and it seems to keep the variables.

    Found here: https://github.com/Microsoft/azure-pipelines-agent/issues/1465

    0 讨论(0)
  • 2020-11-27 07:43

    Update:

    Now you should use below to avoid syncing sources at all:

    Classic Editor: agent.source.skip=true

    YAML:

    steps:
    - checkout: none
    

    It's not able to directly disable/remove the Get Sources task. However, you could add a variable to achieve it:

    Build.SyncSources = false

    You can see from below screenshot, the Get Sources operation started and finished without fetching the data from TFS version control

    Note: This variable works with TFS 2017 and above/VSTS vNext builds.

    More detail info please take a look at this helpful blog.

    0 讨论(0)
提交回复
热议问题