CloudBees Integration
Introduction
CloudBees is a Jenkins-based platform built to manage and run continuous integration and delivery pipelines. It lets you automate builds, tests, and deployments securely and at scale, centralizing pipeline execution in a controlled and easy-to-manage environment.
Requirements
As CloudBees is not an SCM and can not host source code, an Cloud SCM is needed. At this time, the supported SCMs are Github, Gitlab and Bitbucket.
The SCM is needed for executing pipelines on CloudBees but the Xygeni integration of those SCMs is not necessary to follow this guide.
1. Gather and new API Token and configure it as Secret
Go to the left panel > Configurations > Properties and click on Create Propertie

A new panel will open, use XYGENI_TOKEN as name, String as Data type and write your token on the Value field. Also do not forget to select the Secret checkbox for secure the token.

This is the expected result:

2. Integrate and SCM
Move to the Integrations tab and click on "Create Integration".

Click on Source code Management and follow the instructions depending on the SMC you want to integrate.

3. Create a component
In Cloudbees components are like proyects on Xygeni or repositories in the SCM.
Move to Components, create component to create one

This will show a list with all the connected repositories, select at least one to continue.

A new component will be created. Click on that component.

4. Create and run a new workflow
Move to Workflows and press Create Standard Workflow. This will create a new workflow.

This workflows are based on yaml files and use the more or less the same lenguage as Github Actions. But, external actions (as the one of xygeni) can not be used. This means that all the xygeni scanner download and executing workflow must be done by hand.
You can use the following pipeline as template and modify the xygeni scan command as you need it:
Press commit to save the changes and press Run to launch the workflow.
A new Run will be shown on the Run Summary list.

Last updated