Creating and Running a Pipeline
- Before you start, anadministrator usermust perform the required procedures that connect Pipelines to the machines and services that enable a pipeline to run.
- The section below is meant to provide you an overview of the steps involved in creating and running a pipeline. However, successful run of a pipeline requires a few prerequisites. For more information, seePipelines Quickstart.
The main steps for creating and running a pipeline are as follows:
Step 1: Create a Node Pool
Who can perform this step? | Administrators only. Other users can go toApplication |Pipelines | Node Poolsto view the node pools that an administrator has assigned to them. |
---|---|
Description | To run a pipeline, you must provide Pipelines with machines for steps to execute on. In Pipelines, these machines are callednodes, and they are organized intonode pools. Pipelines must be configured with at least one node pool that contains at least one node. One node pool is set as the default node pool and available to all users. You have a variety of choices in how node pools can be configured. Your nodes can bestatic(a VM in at a fixed IP address) ordynamic(on-demand in a cloud service). |
Step(s) | 添加一个节点池和节点,从Administrationtab, go toPipelines | Node Pools, and clickAdd Node Pool. |
Dive Deeper | For information about adding a static or dynamic node pool, see妈naging Pipelines Node Pools. |
Step 2: Add Integrations
Who can perform this step? | Administrators only. Other users can go toApplication |Pipelines | Integrationsto view the integrations that an administrator has assigned to them. |
---|---|
Description | For Pipelines to connect to other services, such as GitHub, Artifactory, or Kubernetes,integrationsmust be added for those services. The integration must be provided with the URL endpoint for those services and credentials for a user account on that service, along with any other relevant parameters. |
Step(s) |
To add the integration, from theAdministrationtab, go toPipelines |Integrations, and clickAdd an Integration.
Here, we add aGitHub Integration——但是你可以添加一个VCS系统集成m you prefer to use, whether that'sGitHub Enterprise,GitLab,Bitbucket, orBitbucket Server. For the full list of all the integrations you can add, seePipelines Integrations.
After your integration is successfully added, it is listed among the available integrations.
|
Dive Deeper | For more information, see妈naging Pipelines Integrations. |
Step 3: Create the Pipeline DSL
Who can perform this step? | Administrators and Developers. |
---|---|
Description |
Pipelines are defined using Pipelines DSL, stored in one or more YAML files of key-value pairs, known as apipeline config. A Pipelines DSL looks like this: |
Step(s) | Create a directory named .jfrog-pipelines in your source VCS repository, such as Git, and then commit the .yml file to this directory. |
Dive Deeper | For more information, seeDefining a Pipeline. |
Step 4: Add a Pipeline Source
Who can perform this step? | Administrators only. Other users can go toApplication |Pipelines |Pipelines Sourcesto view the pipeline sources that an administrator has assigned to them. |
---|---|
Description | For Pipelines to read and sync the Pipelines DSL from the source VCS repository, you must tell it where to find it by adding apipeline source. This is best performed only after the Pipelines DSL file is checked into the source repo, so that Pipelines can sync the file immediately. |
Step(s) |
To add a pipeline source, from theAdministrationtab, go toPipelines |Pipelines Sources, and clickAdd Pipeline Source.
Once the pipeline source is successfully added, Pipelines will sync the file to load the DSL file and create the declared resources and pipelines.
|
Dive Deeper | For more information, see妈naging Pipeline Sources. |
Step 5: Run the Pipeline
Who can perform this step? | Administrators and Developers. |
---|---|
Description | Trigger either a manual and automatic run of the pipeline. |
Step(s) |
The following are the steps for running a pipelineusing the new UI. If you want the perform the same steps using the old UI, see the expandable section below.
|
Dive Deeper |
|