forked from wakaleo/game-of-life
-
Notifications
You must be signed in to change notification settings - Fork 89
Expand file tree
/
Copy pathJenkinsfile
More file actions
41 lines (39 loc) · 958 Bytes
/
Jenkinsfile
File metadata and controls
41 lines (39 loc) · 958 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
39
40
41
pipeline{
tools{
jdk 'myjava'
maven 'mymaven'
}
agent none
stages{
stage('Checkout'){
agent any
steps{
git 'https://github.com/devops-trainer/game-of-life.git'
}
}
stage('Compile'){
agent any
steps{
sh 'mvn compile'
}
}
stage('UnitTest'){
agent{label 'linux_slave'}
steps{
git 'https://github.com/devops-trainer/game-of-life.git'
sh 'mvn test'
}
post{
always{
junit 'gameoflife-web/target/surefire-reports/*.xml'
}
}
}
stage('Package'){
agent any
steps{
sh 'mvn package'
}
}
}
}