-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
38 lines (38 loc) · 980 Bytes
/
Jenkinsfile
File metadata and controls
38 lines (38 loc) · 980 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pipeline {
agent { label 'Demo' }
stages {
stage('Compile/Test') {
steps {
withMaven(maven: 'Maven 3.8.6') {
sh "mvn clean install"
}
}
}
stage('Report') {
steps {
junit allowEmptyResults: true, testResults: '**/*.xml'
}
}
stage('Source Code Check') {
steps {
echo "sonar scan"
}
}
stage('Deploy') {
steps {
withMaven(maven: 'Maven 3.8.6') {
sh "mvn deploy"
}
}
}
}
post {
always {
sh 'printenv'
emailext body: '', recipientProviders: [developers()], subject: 'Build executed ', to: 'thomas@mosig-frey.de'
}
success {
cleanWs()
}
}
}