Difference between revisions of "Azure Pipelines: Resources:"

From wikieduonline
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
 
   [[webhooks:]] [ webhook ]
 
   [[webhooks:]] [ webhook ]
  
 +
<pre>
 +
resources:        # types: pipelines | builds | repositories | containers | packages
 +
  pipelines:
 +
  - pipeline: string  # identifier for the resource used in pipeline resource variables
 +
    project: string # project for the source; optional for current project
 +
    source: string  # name of the pipeline that produces an artifact
 +
    version: string  # the pipeline run number to pick the artifact, defaults to latest pipeline successful across all stages; Used only for manual or scheduled triggers
 +
    branch: string  # branch to pick the artifact, optional; defaults to all branches; Used only for manual or scheduled triggers
 +
    tags: [ string ] # list of tags required on the pipeline to pickup default artifacts, optional; Used only for manual or scheduled triggers
 +
    trigger:    # triggers aren't enabled by default unless you add trigger section to the resource
 +
      branches:  # branch conditions to filter the events, optional; Defaults to all branches.
 +
        include: [ string ]  # branches to consider the trigger events, optional; Defaults to all branches.
 +
        exclude: [ string ]  # branches to discard the trigger events, optional; Defaults to none.
 +
      tags: [ string ]  # list of tags to evaluate for trigger event, optional
 +
      stages: [ string ] # list of stages to evaluate for trigger event, optional
 +
</pre>
  
 
== Related ==
 
== Related ==
 
* <code>[[trigger:]]</code>
 
* <code>[[trigger:]]</code>
 
* <code>[[repositories:]]</code>
 
* <code>[[repositories:]]</code>
 +
* [[Terraform resources]]
  
 
== See also ==
 
== See also ==

Latest revision as of 14:24, 21 March 2022

resources:
  pipelines: [ pipeline ]  
  builds: [ build ]
  repositories: [ repository ]
  containers: [ container ]
  packages: [ package ]
  webhooks: [ webhook ]
resources:        # types: pipelines | builds | repositories | containers | packages
  pipelines:
  - pipeline: string  # identifier for the resource used in pipeline resource variables
    project: string # project for the source; optional for current project
    source: string  # name of the pipeline that produces an artifact
    version: string  # the pipeline run number to pick the artifact, defaults to latest pipeline successful across all stages; Used only for manual or scheduled triggers
    branch: string  # branch to pick the artifact, optional; defaults to all branches; Used only for manual or scheduled triggers
    tags: [ string ] # list of tags required on the pipeline to pickup default artifacts, optional; Used only for manual or scheduled triggers
    trigger:     # triggers aren't enabled by default unless you add trigger section to the resource
      branches:  # branch conditions to filter the events, optional; Defaults to all branches.
        include: [ string ]  # branches to consider the trigger events, optional; Defaults to all branches.
        exclude: [ string ]  # branches to discard the trigger events, optional; Defaults to none.
      tags: [ string ]  # list of tags to evaluate for trigger event, optional
      stages: [ string ] # list of stages to evaluate for trigger event, optional

Related[edit]

See also[edit]

Advertising: