Setting up Automation Pipelines to
model my release process
Automation Pipelines
to
model my release processTo model your release process, you
create a pipeline that represents the stages, tasks, and approvals that you normally use for
releasing your software.
Automation Pipelines
then automates the process that
builds, tests, approves, and deploys your code. - Verify whether any endpoints are already available. InAutomation Pipelines, clickEndpoints.
- Learn about native ways that you can build and deploy your code. See Planning to natively build, integrate, and deliver your code in Automation Pipelines.
- Determine whether some of the resources that you will use in your pipeline must be marked as restricted. See How do I manage user access and approvals in Automation Pipelines.
- If you have the user role or the viewer role instead of the administrator role, determine who is the administrator for yourAutomation Pipelinesinstance.
Now that you have everything for modeling your
software release process, here's how you do it in
Automation Pipelines
. - Examine the projects available inAutomation Pipelinesand select one that is right for you.
- If no projects appear, ask aAutomation Pipelinesadministrator who can create a project and make you a member of the project. See How do I add a project in Automation Pipelines.
- If you are not a member of any projects listed, ask aAutomation Pipelinesadministrator who can add you as a member of a project.
- Add any new endpoints that you need for your pipeline.For example, you might need Git, Jenkins,Automation PipelinesBuild, Kubernetes, and Jira.
- Create variables so that you can reuse values in your pipeline tasks.To constrain the resources used in your pipelines, such as a host machine, use restricted variables. You can restrict the pipeline from continuing to run until another user explicitly approves it.Administrators can create secret variables and restricted variables. Users can create secret variables.You can reuse a variable as many times as you want across multiple pipelines. For example, a variable that defines a host machine can beHostIPAddress. To use the variable in a pipeline task, you enter${var.HostIPAddress}.
- If you are an administrator, mark any endpoints and variables that are vital to your business as restricted resources.When a user who is not an administrator attempts to run a pipeline that includes a restricted resource, the pipeline stops at the task that uses the restricted resource. Then, an administrator must resume the pipeline.
- Plan the build strategy for your native CICD, CI, or CD pipeline.Before you create a pipeline that continuously integrates (CI) and continuously deploys (CD) your code, plan your build strategy. The build plan helps you determine whatAutomation Pipelinesneeds so that it can natively build, integrate, test, and deploy your code.How to create aAutomation Pipelinesnative buildResults in this build strategyUse one of the smart pipeline templates.
- Builds all the stages and tasks for you.
- Clones the source repository.
- Builds and tests your code.
- Containerizes your code for deployment.
- Populates the pipeline task steps based on your selections.
Add stages and tasks manually.You add stages, add tasks, and enter the information that populates them. - Create your pipeline by using a smart pipeline template, or by manually add stages and tasks to the pipeline.Then, you mark any resources as restricted. Add approvals where needed. Apply any regular, restricted, or secret variables. Add any bindings between tasks.
- Validate, enable, and run your pipeline.
- View the pipeline executions.
- To track status and key performance indicators (KPIs), use the pipeline dashboards, and create any custom dashboards.
You created a pipeline that you can use in
the selected project.
You can also export your pipeline YAML, then import it
and reuse it in other projects.
Learn about use cases that you might want to
apply in your environment. See Tutorials for using Automation Pipelines.