forked from Narendrakaduru/SaiJavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
54 lines (46 loc) · 823 Bytes
/
Jenkinsfile
File metadata and controls
54 lines (46 loc) · 823 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
44
45
46
47
48
49
50
51
52
53
54
pipeline {
agent any
stages {
stage('checkout scm') {
parallel {
stage('checkout scm') {
steps {
git(url: 'https://github.com/lhari505/SaiJavaCode.git', branch: 'master')
}
}
stage('chech pom.xml') {
steps {
echo 'pom.xml'
}
}
}
}
stage('build') {
parallel {
stage('build') {
steps {
sh 'mvn clean package'
}
}
stage('build dev') {
steps {
echo 'building dev'
}
}
}
}
stage('test') {
steps {
sh 'mvn test'
}
}
stage('deploy') {
steps {
sh 'docker build -t harishl/my-app:1.0.0 .'
}
}
}
tools {
maven 'M2_HOME'
}
}