forked from schottsfired/app-store-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
executable file
·59 lines (52 loc) · 1.14 KB
/
Jenkinsfile
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
pipeline {
agent {
docker {
image 'maven'
}
}
stages {
stage('Build') {
steps {
sh 'mvn clean source:jar package'
}
}
stage('Browser Tests') {
steps {
parallel(
"Firefox": {
sh 'echo \'setting up selenium environment\''
sh 'ping -c 5 localhost'
},
"Safari": {
sh 'echo \'setting up selenium environment\''
sh 'ping -c 8 localhost'
},
"Chrome": {
sh 'echo \'setting up selenium environment\''
sh 'ping -c 3 localhost'
},
"Internet Explorer": {
sh 'echo \'setting up selenium environment\''
sh 'ping -c 4 localhost'
}
)
}
}
stage('Static Analysis') {
steps {
sh 'mvn findbugs:findbugs'
}
}
stage('Deploy') {
steps {
sh 'mvn source:jar package -Dmaven.test.skip'
}
}
}
post {
always {
junit '**/target/surefire-reports/TEST-*.xml'
archive '**/target/*.jar'
}
}
}