forked from vaadin/addressbook
-
Notifications
You must be signed in to change notification settings - Fork 181
Expand file tree
/
Copy pathJenkinsfile-DevOps-Jan
More file actions
43 lines (42 loc) · 836 Bytes
/
Jenkinsfile-DevOps-Jan
File metadata and controls
43 lines (42 loc) · 836 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
42
43
pipeline {
agent {
node:
label 'alok-server'
}
tools {
maven 'mymaven'
jdk 'myjava'
}
stages {
stage('Check Maven Version') {
steps {
sh 'mvn --version'
}
}
stage('Check Java Version') {
steps {
sh 'java -version'
}
}
stage('Validate the code') {
steps {
sh 'mvn validate'
}
}
stage('Compile the code') {
steps {
sh 'mvn compile'
}
}
stage('Test the code') {
steps {
sh 'mvn test'
}
}
stage('package') {
steps {
sh 'mvn package'
}
}
}
}