forked from bmarron/WebJavaIC
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile_old
More file actions
33 lines (32 loc) · 749 Bytes
/
Jenkinsfile_old
File metadata and controls
33 lines (32 loc) · 749 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
pipeline {
agent any
options {
gitLabConnection('GitLab Dawan')
gitlabCommitStatus(name: 'jenkins')
}
stages {
stage('Preparation') { // for display purposes
steps {
git credentialsId: '8b744777-8e3f-4500-83e5-b91aedfca49b', url: 'https://bmarron@gitlab.dawan.fr/demo/WebJavaIC.git'
}
}
stage('Build') {
steps {
script {
// Run the maven build
if (isUnix()) {
sh "mvn -Dmaven.test.failure.ignore clean site:site"
} else {
bat(/mvn -Dmaven.test.failure.ignore clean package/)
}
}
}
}
stage('Results') {
steps {
junit '**/target/surefire-reports/TEST-*.xml'
archive 'target/*.jar'
}
}
}
}