Versions Compared

Key

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

...

You can use whatever name you wish for those variables, just be sure you use those variable names in the config file (see below).

Image Modified

 

Info
titleStep 2: Add Kiuwan to config.yml

Next, you need to create at your GitHub repository a directory named .circleci and place a config file named config.yml with the following contents.

(you can download a sample config.yml file here )
Code Block
languagebash
titleconfig.yml
#
# Check https://circleci.com/docs/2.0/language-java/ for more details
#
version: 2
jobs:
 build:
    docker:
       # IMPORTANT : specify any image but allways use Java 1.8 !!
       - image: circleci/openjdk:8-jdk
 
    working_directory: ~/repo
    steps:
       - checkout

       # Download and install Kiuwan Local Analyzer
       - run: 
           name: Download and Install KLA
           command: |
               wget https://www.kiuwan.com/pub/analyzer/KiuwanLocalAnalyzer.zip -P ${HOME}
               unzip ${HOME}/KiuwanLocalAnalyzer.zip -d ${HOME}
               chmod +x ${HOME}/KiuwanLocalAnalyzer/bin/*.sh
 
       # Executes Kiuwan Local Analyzer 
       # Visit https://www.kiuwan.com/docs/display/K5/Code+analysis+using+the+downloaded+agent for a full description of command line options
       - run:
           name: Run Kiuwan baseline analysis
           command: ${HOME}/KiuwanLocalAnalyzer/bin/agent.sh -n ${CIRCLE_PROJECT_REPONAME} -s ${HOME}/repo -l "Circle CI ${CIRCLE_BUILD_NUM}" -c -wr --user ${KIUWAN_USER} --pass ${KIUWAN_PASSWD} exclude.patterns="./KiuwanLocalAnalyzer/**,**/*.min.js,**/*.Designer.vb,**/*Reference.vb,**/*Service.vb,**/*Silverlight.vb,**/*.designer.vb,**/*reference.vb,**/*service.vb,**/*silverlight.vb,**/*.Designer.cs,**/*Reference.cs,**/*Service.cs,**/*Silverlight.cs,**/*.designer.cs,**/*reference.cs,**/*service.cs,**/*silverlight.cs,**/.*,**/Pods/BuildHeaders/**/*.h,**/Pods/Headers/**/*.h include.patterns=**/**" ignore=architecture

 

 

Image Added

 

Info

Now, Kiuwan will be a integrating part of your CircleCI pipeline.

Image Removed

 

Image Modified

 

Info

Visit Kiuwan Local Analyzer Deprecated documentation page for any doubt and feel free to contact Kiuwan Technical Support

...