Child pages
  • Using Plato to integrate code analysis report in Jenkins

Versions Compared

Key

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

...

  • Checkout the custom JenkinsConfig from https://github.com/Servoy/svyJenkinsConfig
     
  • Configure Ant to point to the custom build.xml file. In the Build section of Jenkins set Build File to value 

    JenkinsConfig/svyJenkinsConfig/CBI_config/jenkins_build.xml  
     

  • Set advanced build properties:

    work.servoy.install.dir = C:/Servoy
    smart_test_solutions = servoyTestSolutionName
    WORKSPACE = ${WORKSPACE}
    ANT_CONTRIB_JAR = ${ANT_CONTRIB_JAR}
    antRunner.dir = ${WORKSPACE}/JenkinsConfig/svyJenkinsConfig/CBI_config
    servoy.test.property.file = ${WORKSPACE}/JenkinsConfig/svyJenkinsConfig/CBI_config/servoy.properties
    workspace.plato.input.dir =solutionsDir

    workspace.plato.output.dir =JenkinsConfig/svyJenkinsConfig/CBI_config/plato 
    code.analysis.exclude.modules = JenkinsConfig, solution_test, customFile.js
     

  • modify the export_and_test.properties to disable Plato during the build or to make the build fail if plato could not run with success.
    Set make_code_analysis_report = yep to create code analysis report during build and always_fails_if_code_analysis_fails = true to force build to fail when an error occurs during the creation of code analysis report.

...