Skip to content

shanthshivam/sample-java-maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

// multistage pipeline { agent any tools { maven 'M3' } stages { stage('Source') { steps { git url: 'https://github.com/shanthshivam/sample-java-maven.git' } } stage('Build') { steps { script { def mvnHome = tool 'M3' sh "mvn -B verify" } } } stage('SonarQube Analysis') { steps { script { def mvnHome = tool 'M3' withSonarQubeEnv() { sh "mvn clean verify sonar:sonar -Dsonar.projectKey=java-maven" } } } } stage('Test') { steps { step([$class: 'JUnitResultArchiver', testResults: '/target/surefire-reports/TEST-*.xml']) } } stage('Packaging') { steps { step([$class: 'ArtifactArchiver', artifacts: '/target/*.jar', fingerprint: true]) } } } }

About

DevOps demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages