Resources are one of the key building blocks of all pipelines. They are information entities that are used for storing and exchanging information across steps and pipelines.
Resources are versioned and each version is immutable. They are also global and depending on the scope defined for the pipeline source, they can be available across pipelines, which enable you to connect multiple pipelines together to create a pipeline of pipelines.
Resources are pointers and they can be used to reference:
A repository in your source code control system, such as GitHub
A file on a remote file server
A Docker image
A release bundle for JFrog Distribution
A cluster for container orchestration
Using resources in your pipeline involves two main steps:
In the pipeline's YAML, in the
resourcessection, define all the resources required for running the pipeline.
After a resource is defined, it is available for use in the pipeline, based on the scope defined for the pipeline source.
stepssection, as per your workflow, add these resources as input and/or output.
See it Live
Click here to see some of these resources in action.