[Need Help] How to invoke report plugin on Jenkins(PMD,PHPCPD,checkstyle,Jdepend and others) to jenkinsfile (pipeline)?

170 views
Skip to first unread message

pandu siregar

unread,
Jul 18, 2016, 11:51:28 PM7/18/16
to Jenkins Users
Hi guys

i'm working on jenkins 2.x using jenkinsfile .
i have build a job using jenkinsfile and i need the script or code to invoke the Analysis Collector Plugin to my jenkinsfile so i could get the report.
here my current jenkinsfile :

#!groovy

node {
 // Mark the code checkout 'stage'....
//  stage 'Stage Checkout'

  // Checkout code from repository and update any submodules
//  checkout scm
//sh 'git submodule update --init' 

 stage 'Build '

 echo "My branch is: ${env.BRANCH_NAME}"

sh 'cd gitlist-PHP && ./gradlew clean build'

stage 'Report'
 step([$class: 'JUnitResultArchiver', testResults: 'gitlist-PHP/build/logs/junit.xml'])

}


thanks four your convenience. 

regard
pandu siregar

pandu siregar

unread,
Jul 20, 2016, 5:24:31 AM7/20/16
to Jenkins Users
please help
Reply all
Reply to author
Forward
0 new messages