|
| 1 | +== Jenkins CI |
| 2 | + |
| 3 | +Jenkins is used to build and test your product continuously, so developers can continuously integrate changes into the build. Jenkins is the most popular open source CI/CD tool on the market today and is used in support of DevOps, alongside other cloud native tools. |
| 4 | + |
| 5 | +This section demonstrates how *Developer Hub* allows you to instantiate a Quarkus application that is built using a Jenkins pipeline as well incorporating all aspects of RHTAP. |
| 6 | + |
| 7 | +=== Run the template |
| 8 | + |
| 9 | +. Login to developer hub and on the left menu click *Create* |
| 10 | +. Search for a template called *Securing a Quarkus Service Software Supply Chain (Jenkins)* |
| 11 | +. Once you find it, click on *Choose* |
| 12 | +. On the *Provide Information for Application* page, you may update the maven properties as you prefer or you can leave the defaults. |
| 13 | +. On the *Provide Image Registry Information*, select *Quay* |
| 14 | +. On the *Application repository Information*, you can enable commit signing if you wish or you can continue with the default values. |
| 15 | +. Click on create. This should create the application repository, gitops repository and developer hub catalog item. |
| 16 | +. Click on *Open software component* |
| 17 | +. Click on the *CI* tab. There should be 3 projects visible, one for build, one for preparing a pre-prod deployment and one for preparing a prod deployment. A build should automatically trigger. If this does not show up, click on a different tab and then click back to the *CI* tab to refresh the page. |
| 18 | +. You may click on the *View build* icon to view the output of the build on jenkins. Enter the credentials provided on the demo landing page. |
| 19 | +. Once the build is complete, click on the *Topology* tab. The application for *dev* is now healthy, indicated by a blue ring. Click on the arrow on the application icon to view the Quarkus application. |
| 20 | +* To make changes to the Quarkus application, click on the *Overview* tab and select the *OpenShift Dev Spaces (VS Code)* link. This should provision a *DevSpaces* project where you can update the source code as you wish. Pushing the changes back to GitLab triggers a new build and deploy to dev. |
| 21 | + |
| 22 | +=== Promote to preprod |
| 23 | +. To deploy your Quarkus application to preprod, switch to the *Overview* tab and click on the *Source Code* link. This should open the repository root on GitLab. |
| 24 | +. On the left menu, select *Code* and then *Tags*. |
| 25 | +. Click on *New Tag* |
| 26 | +. Give the tag a name such as `v1.0` |
| 27 | +. Click on *Create tag* |
| 28 | +. Switch back to *Developer Hub* and click on the *CI* tab. A new preprod build will be triggered. |
| 29 | +. Wait for the build to complete and then click on the *Topology* tab. The application for *preprod* is now healthy, indicated by a blue ring. Click on the arrow on the application icon to view the Quarkus application. |
| 30 | + |
| 31 | +=== Promote to preprod |
| 32 | +. To deploy your Quarkus application to preprod, switch to the *Overview* tab and click on the *Source Code* link. This should open the repository root on GitLab. |
| 33 | +. On the left menu, select *Code* and then *Tags*. |
| 34 | +. Click on *New Tag* |
| 35 | +. Give the tag a name such as `v1.0` |
| 36 | +. Click on *Create tag* |
| 37 | +. Switch back to *Developer Hub* and click on the *CI* tab. A new preprod build will be triggered. |
| 38 | +. Wait for the build to complete and then click on the *Topology* tab. The application for *preprod* is now healthy, indicated by a blue ring. Click on the arrow on the application icon to view the Quarkus application. |
0 commit comments