-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
44 lines (40 loc) · 1.1 KB
/
Jenkinsfile
File metadata and controls
44 lines (40 loc) · 1.1 KB
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
39
40
41
42
43
44
pipeline {
agent {
label 'linux'
}
options {
timestamps()
disableConcurrentBuilds(abortPrevious: true)
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('build dev JeeExamples') {
steps {
// build
withMaven(globalMavenSettingsConfig: 'ae44f8b3-3bf7-4624-8e87-74659f3f817f', maven: 'maven3', traceability: true) {
script {
try {
sh "mvn clean install"
} catch(Throwable e) {
echo "error occurred"
throw e
} finally {
echo "the sh step was executed"
}
}
}
recordIssues(tools: [mavenConsole()])
}
}
}
post {
success {
// clean ws
cleanWs notFailBuild: true
}
failure {
// Log Files an server senden
echo "log files transmitted"
}
}
}