-
Notifications
You must be signed in to change notification settings - Fork 155
/
Jenkinsfile
42 lines (42 loc) · 1.01 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
pipeline{
agent any
stages{
stage('checkout the code from github'){
steps{
git url: 'https://github.com/akshu20791/Banking-java-project/'
echo 'github url checkout'
}
}
stage('codecompile with akshat'){
steps{
echo 'starting compiling'
sh 'mvn compile'
}
}
stage('codetesting with akshat'){
steps{
sh 'mvn test'
}
}
stage('qa with akshat'){
steps{
sh 'mvn checkstyle:checkstyle'
}
}
stage('package with akshat'){
steps{
sh 'mvn package'
}
}
stage('run dockerfile'){
steps{
sh 'docker build -t myimg .'
}
}
stage('port expose'){
steps{
sh 'docker run -dt -p 8091:8091 --name c000 myimg'
}
}
}
}