-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjenkins_nov23
More file actions
47 lines (46 loc) · 1.62 KB
/
jenkins_nov23
File metadata and controls
47 lines (46 loc) · 1.62 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
44
45
46
47
pipeline {
agent { label "projecta" }
stages {
stage('1st Step - git clone ') {
steps {
git 'https://github.com/vincloud2/Helloworld-latest.git'
}
}
stage('2nd Step-build ') {
steps {
sh 'yum install maven -y'
sh 'mvn clean package'
}
}
stage('3rd Step-deploy ') {
steps {
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.20.37:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('4rd Step-deploy ') {
steps {
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.20.37:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('5rd Step-deploy ') {
steps {
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.20.37:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('6rd Step-deploy ') {
steps {
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.20.37:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('7rd Step-deploy ') {
steps {
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.20.37:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('8th Step-success ') {
steps {
echo 'success'
}
}
}
}