forked from manikumi/JavaProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile_new
More file actions
43 lines (42 loc) · 1.55 KB
/
Jenkinsfile_new
File metadata and controls
43 lines (42 loc) · 1.55 KB
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 { label "slave1" }
stages {
stage('Stage1-cloning project') {
steps {
echo 'cloning project from git'
git 'https://github.com/vincloud2/Helloworld-latest.git'
}
}
stage('Stage2 -maven build') {
steps {
echo 'Maven build'
sh 'yum install maven -y'
sh 'mvn clean package'
}
}
stage('Stage3-Deploy') {
steps {
echo 'Hello World -Deploy'
deploy adapters: [tomcat8(credentialsId: 'admin_tomcat', path: '', url: 'http://54.169.120.161:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('Stage4-Testenv') {
steps {
echo 'Hello World -Deploy'
deploy adapters: [tomcat8(credentialsId: 'admin_tomcat', path: '', url: 'http://54.169.120.161:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('Stage6-UAT') {
steps {
echo 'Hello World -Deploy'
deploy adapters: [tomcat8(credentialsId: 'admin_tomcat', path: '', url: 'http://54.169.120.161:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('Stage6-Production') {
steps {
echo 'Hello World -Deploy'
deploy adapters: [tomcat8(credentialsId: 'admin_tomcat', path: '', url: 'http://54.169.120.161:8080/')], contextPath: null, war: '**/*.war'
}
}
}
}