You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
This guide will show you how to integrate Kiuwan into GitLab CI.
GitLab is a powerful tool for software development, security, and operations that enables concurrent DevOps, making the software lifecycle faster.
In continuous integration and continuous delivery (CI/CD) environments, it is very common (and recommendable) to ensure the security and quality of the software under development.
Kiuwan allows baseline or delivery analyses as a step in the pipeline defined in GitLab.
The Kiuwan analysis will be executed by a GitLab runner.
To run a Kiuwan analysis, follow the next steps:
In the project home, add a YAML file with the steps to invoke Kiuwan.
The tags used in this step are important because they will be used in the configuration of the local agents (runners).
Here is a very simple case with a Maven step and a Kiuwan baseline analysis:
2. Install Kiuwan Local Analyzer in the runner machine
As we can see in the previous example, the call to Kiuwan is through a command line.
The Kiuwan Local Analyzer must be installed where the GitLab runner will be installed. Here are instructions on how to install it.
In addition, add the folder KLA_HOME/bin to the environment variable PATH.
Kiuwan credentials should be added as secret variables. These variables will be applied to environments via the runner.
To add the variables go to Settings -> CI/CD menu and clicking on Expand and add both variables.
To perform a Kiuwan analysis we need to install a GitLab runner (local agent) that will be responsible to execute the steps of the pipeline.
To install a gitlab runner follow these instructions: https://docs.gitlab.com/runner/install/
When we create the agent it is necessary to specify the tags of the steps we want to analyze with the runner.
In the previous example, the tags used are maven and kiuwan:
Once this is done, perform an analysis in the pipeline screen to test the configuration.