Create Your Own Build Pipelines with OpenShift 3.3, Part I

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
you hello everyone welcome to OpenShift videos in this video we'll we will learn how to create our own build pipelines in opposite version 3 RT this is an upcoming release coming in in the next few days the version that I'm using right now is the pre-release version so things might be slightly different than the actual release you would have seen earlier videos on how pipelines work in open shoot version 3.3 in this video you'll learn step-by-step on how to create your own pipeline for your application on run in the next video you will learn how to edit this pipeline to go across the projects so let's start simple first we'll learn how to create a pipeline so let's start by creating a new project I'm going to call this project CI CD you'll notice a small change here just like in the previous versions you can process the catalog and deploy your own application you can also deploy an image by clicking on this or you can employ import a channel or a JSON file for creating a Jenkins build configuration will import a yamo here this Y amel is a build configuration I call it my first pipeline I'll make this available through my github and this pipeline has if you look at the strategy here this build configuration has the type Jenkins pipeline and it uses Jenkins pipeline strategy and it is pointing to a Jenkins file we'll discuss the contents of this file in a minute for now I'll just go ahead and create once I did that you'll notice that there is a route Jenkins here and in a few seconds you will see that Jenkins part will start running here you go the deployment is running and the Jenkins pod is up now let's look at this part from the environment I want to capture this Jenkins password because in order to login to the Jenkins console I'll need this password click on this URL here is my Jenkins console I login as administrator this is the first pipeline that we just created let's go back to our web console if I look at the bills section you'll see the pipeline's here this is the first pipeline let's see the configuration here is the Jenkins file Jenkins file let I wanted to talk about so this Jenkins file has two stages the first stage is the build stage and in the build stage I'm running an open shift build and this build would invoke a build configuration called my PHP you can edit it to some other name if you wanted to create an application with a different name right the next stage is a deploy stage and in deploy stage I'm doing two things first I'm invoking open ship deploy here a deployment configuration with the name my PHP will be invoked and once the deployment is complete I want to scale up this application to two instances very simple now let's go back we don't have at the build and deployment configuration for my application right so in that context let's use an application I have on my github a small demo app that uses PHP so I will copy this say act a project select PHP because there's a PHP app I'll name this my PHP remember the name in the pipeline and I'll point to the git repository let's go to the Advanced Options and here I don't want the bill to be triggered automatically so I am removing the auto trigger options as well as I don't want the deployment to happen automatically so I am removing the auto deploy options is because I want these to be invoked by Jenkins rather than by openshift or mine go to +1 create the application is creative I'll go back to the console let's see that there is a bill created for my PHP there is a deployment created for my PHP and there is an image stream created for my PHP and once the build runs it's going to push the image into this image stream you will also notice that it created a service and a route for my application that is yet to be built in deploy now let us start our pipeline this is the pipeline and I am going to start it so the build is now getting invoked let's look at the logs it shows the logs in Jenkins console as the console output the build is getting started the build has just added it has entered the stage build let's go back to the console so each here it shows the pipeline I started now I can also see this on the oh you page so the first step in the pipeline is complete build is completed in 50 seconds now the deployment has started it is deploying one part once this is done it goes and scales up to two parts now that the build and the plummet is complete let's look at our application and it shows the green rose now let's go back and make a small change I'll edit this application core and I'll change this green rose to bureaus commit to chains let's verify again it's showing green rose now let me start the pipeline again starts the build the build is now complete and the department so it's one of the one new power and the second new power now that the build and deployment is complete let us check our application it shows a blue rose that was a simple example of how you can create your own pipeline and run it within OpenShift 3 or 3 in the next video we'll see how we can edit this pipeline to go across the projects will create a development project will create a testing project and we will do the built on the deployment and development and then move it into testing thanks for watching
Info
Channel: OpenShift
Views: 23,701
Rating: 5 out of 5
Keywords: OpenShift 3, CI/CD
Id: 07-Xx73y3zA
Channel Id: undefined
Length: 7min 29sec (449 seconds)
Published: Fri Oct 07 2016
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.