Adjusted Jenkinsfile for use new profile
parent
d703354cb2
commit
265d30ad13
|
|
@ -1,26 +1,20 @@
|
||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
tools {
|
tools {
|
||||||
maven 'apache-maven-3.6.0'
|
maven 'apache-maven-3.6.3'
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Build and Test') {
|
stage('Build and Test') {
|
||||||
steps {
|
steps {
|
||||||
dir('') {
|
dir('') {
|
||||||
// sh 'mvn clean package test -Pwildfly-remote-h2-mem'
|
sh 'mvn clean verify -Prun-its-with-wildfly-h2mem'
|
||||||
sh 'mvn clean package -Pwildfly-remote-h2-mem'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
post {
|
|
||||||
always {
|
|
||||||
sh 'sudo systemctl restart wildfly'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Analyse") {
|
stage("Analyse") {
|
||||||
steps {
|
steps {
|
||||||
dir('') {
|
dir('') {
|
||||||
sh 'mvn package pmd:pmd pmd:cpd spotbugs:spotbugs'
|
sh 'mvn pmd:pmd pmd:cpd spotbugs:spotbugs'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue