Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含多个阶段的管道,并且所有阶段的源代码都会自动签出。我不需要源代码,只需要发布的工件。
如何禁用特定阶段的源代码签出?
使用结帐选项:https ://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=azure-devops&tabs=schema%2Cparameter-schema#checkout
例子:
trigger: - main pool: vmImage: 'ubuntu-latest' jobs: - job: no_checkout steps: - checkout: none - script: echo Hello, world! displayName: 'Run a one-line script' - job: checkout steps: - script: echo Hello, world! displayName: 'Run a one-line script'