0% found this document useful (0 votes)
29 views1 page

PAAC Checkstyle

The document describes a Jenkins pipeline with stages to fetch code from a GitHub repo, build a WAR file, run tests, and perform checkstyle analysis.

Uploaded by

ankush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

PAAC Checkstyle

The document describes a Jenkins pipeline with stages to fetch code from a GitHub repo, build a WAR file, run tests, and perform checkstyle analysis.

Uploaded by

ankush
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

pipeline {

agent any

stages{
stage('Fetch code') {
steps{
git branch: 'vp-rem', url:'https://github.com/devopshydclub/vprofile-
repo.git'
}
}

stage('Build') {
steps {
sh 'mvn clean install -DskipTests'
}
post {
success {
echo "Now Archiving."
archiveArtifacts artifacts: '**/*.war'
}
}
}
stage('Test'){
steps {
sh 'mvn test'
}

stage('Checkstyle Analysis'){
steps {
sh 'mvn checkstyle:checkstyle'
}
}

}
}

You might also like