Jump To Close Expand all Collapse all Table of contents CI/CD 1. OpenShift Container Platform CI/CD overview Expand section "1. OpenShift Container Platform CI/CD overview" Collapse section "1. OpenShift Container Platform CI/CD overview" 1.1. OpenShift Builds 1.2. OpenShift Pipelines 1.3. OpenShift GitOps 1.4. Jenkins 2. Builds Expand section "2. Builds" Collapse section "2. Builds" 2.1. Understanding image builds Expand section "2.1. Understanding image builds" Collapse section "2.1. Understanding image builds" 2.1.1. Builds Expand section "2.1.1. Builds" Collapse section "2.1.1. Builds" 2.1.1.1. Docker build 2.1.1.2. Source-to-image build 2.1.1.3. Custom build 2.1.1.4. Pipeline build 2.2. Understanding build configurations Expand section "2.2. Understanding build configurations" Collapse section "2.2. Understanding build configurations" 2.2.1. BuildConfigs 2.3. Creating build inputs Expand section "2.3. Creating build inputs" Collapse section "2.3. Creating build inputs" 2.3.1. Build inputs 2.3.2. Dockerfile source 2.3.3. Image source 2.3.4. Git source Expand section "2.3.4. Git source" Collapse section "2.3.4. Git source" 2.3.4.1. Using a proxy 2.3.4.2. Source Clone Secrets Expand section "2.3.4.2. Source Clone Secrets" Collapse section "2.3.4.2. Source Clone Secrets" 2.3.4.2.1. Automatically adding a source clone secret to a build configuration 2.3.4.2.2. Manually adding a source clone secret 2.3.4.2.3. Creating a secret from a .gitconfig file 2.3.4.2.4. Creating a secret from a .gitconfig file for secured Git 2.3.4.2.5. Creating a secret from source code basic authentication 2.3.4.2.6. Creating a secret from source code SSH key authentication 2.3.4.2.7. Creating a secret from source code trusted certificate authorities 2.3.4.2.8. Source secret combinations Expand section "2.3.4.2.8. Source secret combinations" Collapse section "2.3.4.2.8. Source secret combinations" 2.3.4.2.8.1. Creating a SSH-based authentication secret with a .gitconfig file 2.3.4.2.8.2. Creating a secret that combines a .gitconfig file and CA certificate 2.3.4.2.8.3. Creating a basic authentication secret with a CA certificate 2.3.4.2.8.4. Creating a basic authentication secret with a .gitconfig file 2.3.4.2.8.5. Creating a basic authentication secret with a .gitconfig file and CA certificate 2.3.5. Binary (local) source 2.3.6. Input secrets and config maps Expand section "2.3.6. Input secrets and config maps" Collapse section "2.3.6. Input secrets and config maps" 2.3.6.1. What is a secret? Expand section "2.3.6.1. What is a secret?" Collapse section "2.3.6.1. What is a secret?" 2.3.6.1.1. Properties of secrets 2.3.6.1.2. Types of Secrets 2.3.6.1.3. Updates to secrets 2.3.6.2. Creating secrets 2.3.6.3. Using secrets 2.3.6.4. Adding input secrets and config maps 2.3.6.5. Source-to-image strategy 2.3.6.6. Docker strategy 2.3.6.7. Custom strategy 2.3.7. External artifacts 2.3.8. Using docker credentials for private registries 2.3.9. Build environments Expand section "2.3.9. Build environments" Collapse section "2.3.9. Build environments" 2.3.9.1. Using build fields as environment variables 2.3.9.2. Using secrets as environment variables 2.3.10. Service serving certificate secrets 2.3.11. Secrets restrictions 2.4. Managing build output Expand section "2.4. Managing build output" Collapse section "2.4. Managing build output" 2.4.1. Build output 2.4.2. Output image environment variables 2.4.3. Output image labels 2.5. Using build strategies Expand section "2.5. Using build strategies" Collapse section "2.5. Using build strategies" 2.5.1. Docker build Expand section "2.5.1. Docker build" Collapse section "2.5.1. Docker build" 2.5.1.1. Replacing Dockerfile FROM image 2.5.1.2. Using Dockerfile path 2.5.1.3. Using docker environment variables 2.5.1.4. Adding docker build arguments 2.5.1.5. Squashing layers with docker builds 2.5.1.6. Using build volumes 2.5.2. Source-to-image build Expand section "2.5.2. Source-to-image build" Collapse section "2.5.2. Source-to-image build" 2.5.2.1. Performing source-to-image incremental builds 2.5.2.2. Overriding source-to-image builder image scripts 2.5.2.3. Source-to-image environment variables Expand section "2.5.2.3. Source-to-image environment variables" Collapse section "2.5.2.3. Source-to-image environment variables" 2.5.2.3.1. Using source-to-image environment files 2.5.2.3.2. Using source-to-image build configuration environment 2.5.2.4. Ignoring source-to-image source files 2.5.2.5. Creating images from source code with source-to-image Expand section "2.5.2.5. Creating images from source code with source-to-image" Collapse section "2.5.2.5. Creating images from source code with source-to-image" 2.5.2.5.1. Understanding the source-to-image build process 2.5.2.5.2. How to write source-to-image scripts 2.5.2.6. Using build volumes 2.5.3. Custom build Expand section "2.5.3. Custom build" Collapse section "2.5.3. Custom build" 2.5.3.1. Using FROM image for custom builds 2.5.3.2. Using secrets in custom builds 2.5.3.3. Using environment variables for custom builds 2.5.3.4. Using custom builder images Expand section "2.5.3.4. Using custom builder images" Collapse section "2.5.3.4. Using custom builder images" 2.5.3.4.1. Custom builder image 2.5.3.4.2. Custom builder workflow 2.5.4. Pipeline build Expand section "2.5.4. Pipeline build" Collapse section "2.5.4. Pipeline build" 2.5.4.1. Understanding OpenShift Container Platform pipelines 2.5.4.2. Providing the Jenkins file for pipeline builds 2.5.4.3. Using environment variables for pipeline builds Expand section "2.5.4.3. Using environment variables for pipeline builds" Collapse section "2.5.4.3. Using environment variables for pipeline builds" 2.5.4.3.1. Mapping between BuildConfig environment variables and Jenkins job parameters 2.5.4.4. Pipeline build tutorial 2.5.5. Adding secrets with web console 2.5.6. Enabling pulling and pushing 2.6. Custom image builds with Buildah Expand section "2.6. Custom image builds with Buildah" Collapse section "2.6. Custom image builds with Buildah" 2.6.1. Prerequisites 2.6.2. Creating custom build artifacts 2.6.3. Build custom builder image 2.6.4. Use custom builder image 2.7. Performing and configuring basic builds Expand section "2.7. Performing and configuring basic builds" Collapse section "2.7. Performing and configuring basic builds" 2.7.1. Starting a build Expand section "2.7.1. Starting a build" Collapse section "2.7.1. Starting a build" 2.7.1.1. Re-running a build 2.7.1.2. Streaming build logs 2.7.1.3. Setting environment variables when starting a build 2.7.1.4. Starting a build with source 2.7.2. Canceling a build Expand section "2.7.2. Canceling a build" Collapse section "2.7.2. Canceling a build" 2.7.2.1. Canceling multiple builds 2.7.2.2. Canceling all builds 2.7.2.3. Canceling all builds in a given state 2.7.3. Editing a BuildConfig 2.7.4. Deleting a BuildConfig 2.7.5. Viewing build details 2.7.6. Accessing build logs Expand section "2.7.6. Accessing build logs" Collapse section "2.7.6. Accessing build logs" 2.7.6.1. Accessing BuildConfig logs 2.7.6.2. Accessing BuildConfig logs for a given version build 2.7.6.3. Enabling log verbosity 2.8. Triggering and modifying builds Expand section "2.8. Triggering and modifying builds" Collapse section "2.8. Triggering and modifying builds" 2.8.1. Build triggers Expand section "2.8.1. Build triggers" Collapse section "2.8.1. Build triggers" 2.8.1.1. Webhook triggers Expand section "2.8.1.1. Webhook triggers" Collapse section "2.8.1.1. Webhook triggers" 2.8.1.1.1. Using GitHub webhooks 2.8.1.1.2. Using GitLab webhooks 2.8.1.1.3. Using Bitbucket webhooks 2.8.1.1.4. Using generic webhooks 2.8.1.1.5. Displaying webhook URLs 2.8.1.2. Using image change triggers 2.8.1.3. Identifying the image change trigger of a build 2.8.1.4. Configuration change triggers Expand section "2.8.1.4. Configuration change triggers" Collapse section "2.8.1.4. Configuration change triggers" 2.8.1.4.1. Setting triggers manually 2.8.2. Build hooks Expand section "2.8.2. Build hooks" Collapse section "2.8.2. Build hooks" 2.8.2.1. Configuring post commit build hooks 2.8.2.2. Using the CLI to set post commit build hooks 2.9. Performing advanced builds Expand section "2.9. Performing advanced builds" Collapse section "2.9. Performing advanced builds" 2.9.1. Setting build resources 2.9.2. Setting maximum duration 2.9.3. Assigning builds to specific nodes 2.9.4. Chained builds 2.9.5. Pruning builds 2.9.6. Build run policy 2.10. Using Red Hat subscriptions in builds Expand section "2.10. Using Red Hat subscriptions in builds" Collapse section "2.10. Using Red Hat subscriptions in builds" 2.10.1. Creating an image stream tag for the Red Hat Universal Base Image 2.10.2. Adding subscription entitlements as a build secret 2.10.3. Running builds with Subscription Manager Expand section "2.10.3. Running builds with Subscription Manager" Collapse section "2.10.3. Running builds with Subscription Manager" 2.10.3.1. Docker builds using Subscription Manager 2.10.4. Running builds with Red Hat Satellite subscriptions Expand section "2.10.4. Running builds with Red Hat Satellite subscriptions" Collapse section "2.10.4. Running builds with Red Hat Satellite subscriptions" 2.10.4.1. Adding Red Hat Satellite configurations to builds 2.10.4.2. Docker builds using Red Hat Satellite subscriptions 2.10.5. Running entitled builds using SharedSecret objects 2.10.6. Additional resources 2.11. Securing builds by strategy Expand section "2.11. Securing builds by strategy" Collapse section "2.11. Securing builds by strategy" 2.11.1. Disabling access to a build strategy globally 2.11.2. Restricting build strategies to users globally 2.11.3. Restricting build strategies to a user within a project 2.12. Build configuration resources Expand section "2.12. Build configuration resources" Collapse section "2.12. Build configuration resources" 2.12.1. Build controller configuration parameters 2.12.2. Configuring build settings 2.13. Troubleshooting builds Expand section "2.13. Troubleshooting builds" Collapse section "2.13. Troubleshooting builds" 2.13.1. Resolving denial for access to resources 2.13.2. Service certificate generation failure 2.14. Setting up additional trusted certificate authorities for builds Expand section "2.14. Setting up additional trusted certificate authorities for builds" Collapse section "2.14. Setting up additional trusted certificate authorities for builds" 2.14.1. Adding certificate authorities to the cluster 2.14.2. Additional resources 3. Pipelines Expand section "3. Pipelines" Collapse section "3. Pipelines" 3.1. About Red Hat OpenShift Pipelines 4. GitOps Expand section "4. GitOps" Collapse section "4. GitOps" 4.1. About Red Hat OpenShift GitOps Expand section "4.1. About Red Hat OpenShift GitOps" Collapse section "4.1. About Red Hat OpenShift GitOps" 4.1.1. Key features 4.1.2. Additional resources 5. Jenkins Expand section "5. Jenkins" Collapse section "5. Jenkins" 5.1. Configuring Jenkins images Expand section "5.1. Configuring Jenkins images" Collapse section "5.1. Configuring Jenkins images" 5.1.1. Configuration and customization Expand section "5.1.1. Configuration and customization" Collapse section "5.1.1. Configuration and customization" 5.1.1.1. OpenShift Container Platform OAuth authentication 5.1.1.2. Jenkins authentication 5.1.2. Jenkins environment variables 5.1.3. Providing Jenkins cross project access 5.1.4. Jenkins cross volume mount points 5.1.5. Customizing the Jenkins image through source-to-image 5.1.6. Configuring the Jenkins Kubernetes plugin 5.1.7. Jenkins permissions 5.1.8. Creating a Jenkins service from a template 5.1.9. Using the Jenkins Kubernetes plugin 5.1.10. Jenkins memory requirements 5.1.11. Additional resources 5.2. Jenkins agent Expand section "5.2. Jenkins agent" Collapse section "5.2. Jenkins agent" 5.2.1. Jenkins agent images 5.2.2. Jenkins agent environment variables 5.2.3. Jenkins agent memory requirements 5.2.4. Jenkins agent Gradle builds 5.2.5. Jenkins agent pod retention 5.3. Migrating from Jenkins to OpenShift Pipelines or Tekton Expand section "5.3. Migrating from Jenkins to OpenShift Pipelines or Tekton" Collapse section "5.3. Migrating from Jenkins to OpenShift Pipelines or Tekton" 5.3.1. Comparison of Jenkins and OpenShift Pipelines concepts Expand section "5.3.1. Comparison of Jenkins and OpenShift Pipelines concepts" Collapse section "5.3.1. Comparison of Jenkins and OpenShift Pipelines concepts" 5.3.1.1. Jenkins terminology 5.3.1.2. OpenShift Pipelines terminology 5.3.1.3. Mapping of concepts 5.3.2. Migrating a sample pipeline from Jenkins to OpenShift Pipelines Expand section "5.3.2. Migrating a sample pipeline from Jenkins to OpenShift Pipelines" Collapse section "5.3.2. Migrating a sample pipeline from Jenkins to OpenShift Pipelines" 5.3.2.1. Jenkins pipeline 5.3.2.2. OpenShift Pipelines pipeline 5.3.3. Migrating from Jenkins plugins to Tekton Hub tasks 5.3.4. Extending OpenShift Pipelines capabilities using custom tasks and scripts 5.3.5. Comparison of Jenkins and OpenShift Pipelines execution models 5.3.6. Examples of common use cases Expand section "5.3.6. Examples of common use cases" Collapse section "5.3.6. Examples of common use cases" 5.3.6.1. Running a Maven pipeline in Jenkins and OpenShift Pipelines 5.3.6.2. Extending the core capabilities of Jenkins and OpenShift Pipelines by using plugins 5.3.6.3. Sharing reusable code in Jenkins and OpenShift Pipelines 5.3.7. Additional resources 5.4. Important changes to OpenShift Jenkins images Expand section "5.4. Important changes to OpenShift Jenkins images" Collapse section "5.4. Important changes to OpenShift Jenkins images" 5.4.1. Relocation of OpenShift Jenkins images 5.4.2. Customizing the Jenkins image stream tag 5.4.3. Additional resources Legal Notice Settings Close Language: 日本語 简体中文 English 한국어 Language: 日本語 简体中文 English 한국어 Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF Language and Page Formatting Options Language: 日本語 简体中文 English 한국어 Language: 日本語 简体中文 English 한국어 Format: Multi-page Single-page PDF Format: Multi-page Single-page PDF CI/CD OpenShift Container Platform 4.13Contains information on builds, pipelines and GitOps for OpenShift Container Platform Red Hat OpenShift Documentation TeamLegal NoticeAbstract CI/CD for the OpenShift Container Platform Next