Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To run a Kiuwan analysis, it is needed to follow the next steps:


1. Insert or add a Kiuwan step in the YAML definition

In the project home it is needed to add a YAML file with the steps to invoke Kiuwan:


Image Modified


The next code example shows a very simple case with a Maven step and a Kiuwan baseline analysis:

...

Info

Bear in mind that the tags used in the step are important because they will be used in the configuration of the local agents (runners).

 

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.

...

In addition, it is needed to add the folder: KLA_HOME/bin to the environment variable PATH.


3. Define credentials as secret variables

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.

Image Modified



4. Perform an analysis

To perform a Kiuwan analysis we need to install a gitlab runner (local agent) that will be the responsible to execute the steps of the pipeline.

...

Once we have done it, we could perform an analysis in the pipeline screen in order to test the configuration.


Image Modified