Difference between revisions of "Repositories:"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema#define-a-repositories-resource
 
https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema#define-a-repositories-resource
  
  [[repository:]]
+
  [[resources:]]
 +
  repositories:
 +
  - repository: string      # identifier (A-Z, a-z, 0-9, and underscore)
 +
    type: enum              # see the following "Type" topic
 +
    name: string            # repository name (format depends on `type`)
 +
    [[ref:]] string            # ref name to use; defaults to 'refs/heads/main'
 +
    endpoint: string        # name of the service connection to use (for types that aren't Azure Repos)
 +
    trigger:                # CI trigger for this repository, no CI trigger if skipped (only works for Azure Repos)
 +
      branches:
 +
        include: [ string ] # branch names which trigger a build
 +
        exclude: [ string ] # branch names which won't
 +
      tags:
 +
        include: [ string ] # tag names which trigger a build
 +
        exclude: [ string ] # tag names which won't
 +
      paths:
 +
        include: [ string ] # file paths which must match to trigger a build
 +
        exclude: [ string ] # file paths which won't trigger a build
 +
 
  
 
== Related ==
 
== Related ==
 
* <code>[[resources:]]</code>
 
* <code>[[resources:]]</code>
 +
* <code>[[stages:]]</code>
 +
  
 
== See also ==
 
== See also ==

Latest revision as of 13:07, 3 March 2022

repositories: https://docs.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops&tabs=schema#define-a-repositories-resource

resources:
  repositories:
  - repository: string      # identifier (A-Z, a-z, 0-9, and underscore)
    type: enum              # see the following "Type" topic
    name: string            # repository name (format depends on `type`)
    ref: string             # ref name to use; defaults to 'refs/heads/main'
    endpoint: string        # name of the service connection to use (for types that aren't Azure Repos)
    trigger:                # CI trigger for this repository, no CI trigger if skipped (only works for Azure Repos)
      branches:
        include: [ string ] # branch names which trigger a build
        exclude: [ string ] # branch names which won't
      tags:
        include: [ string ] # tag names which trigger a build
        exclude: [ string ] # tag names which won't
      paths:
        include: [ string ] # file paths which must match to trigger a build
        exclude: [ string ] # file paths which won't trigger a build


Related[edit]


See also[edit]

Advertising: