Resources provide the information that steps need in order to execute or store information generated by a step. For example, a resource might point to a source code repository, a Docker image, or a Helm chart. A list of all supported resources is available in Resources overview.
The basic format of each resources declaration is:
Tag | Description |
|---|---|
| A globally unique friendly name for the resource. |
| A predefined string that specifies the type of resource. For more information, see Resource Types. |
| Begins the section of settings required by the resource |
Note
Resource definitions are global and can be used by all pipelines in a Project that is in at least one of the same environments. This means that resource names must be unique across all pipeline config files in a Project.
For example, here is a resources section that defines two resources, a GitRepo and a Docker Image:
resources:
- name: my_Git_Repository
type: GitRepo
configuration:
gitProvider: my_GitHub_Integration
path: ~johndoe/demo
branches:
include: master
- name: my_Docker_Image
type: Image
configuration:
registry: my_Docker_Registry_Integration
imageName: johndoe/demo_image
imageTag: latest