Files
gaps/Jenkinsfile
Jason House c92f558581 Adding sonar
2020-07-28 17:20:10 +09:00

19 lines
535 B
Groovy

pipeline {
agent any
stages {
stage('Minify') {
steps {
sh 'npm install'
sh 'npm ci'
sh './minify'
}
}
stage('Build Jars') {
steps {
sh 'mvn clean install pmd:pmd checkstyle:checkstyle spotbugs:spotbugs'
withSonarQubeEnv(credentialsId: 'c273ab1594d36799589bff7512b5cfcafff617b1', installationName: 'SonarQube') { // You can override the credential to be used
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar'
}
}
}
}