You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
620 B
37 lines
620 B
pipeline { |
|
agent any |
|
|
|
options { |
|
ansiColor('xterm') |
|
} |
|
|
|
stages { |
|
stage('Build') { |
|
steps { |
|
sh 'mvn -DskipTests clean package' |
|
} |
|
} |
|
stage('Test') { |
|
steps { |
|
sh 'mvn test' |
|
} |
|
post { |
|
always { |
|
junit '*/target/surefire-reports/*.xml' |
|
} |
|
} |
|
} |
|
stage('SonarQube Analysis') { |
|
steps { |
|
withSonarQubeEnv('KSKE SonarQube') { |
|
sh 'mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar' |
|
} |
|
} |
|
} |
|
} |
|
post { |
|
success { |
|
archiveArtifacts artifacts: 'client/target/envoy-client-*-shaded.jar, server/target/envoy-server-jar-with-dependencies.jar' |
|
} |
|
} |
|
}
|
|
|