forked from manikumi/JavaProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkins_sample_file
More file actions
55 lines (54 loc) · 2.01 KB
/
jenkins_sample_file
File metadata and controls
55 lines (54 loc) · 2.01 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
48
49
50
51
52
53
54
55
pipeline {
agent { label "slave1" }
stages {
stage('step 1') {
steps {
echo 'clone hello world project '
git 'https://github.com/vincloud2/Helloworld-latest.git'
}
}
stage('step 2') {
steps {
echo 'build project '
sh 'yum install maven -y'
sh 'mvn clean package'
}
}
stage('step 3') {
steps {
echo 'deploy project'
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.30.186:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('step 4') {
steps {
echo 'deploy project_tenv'
//deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.30.186:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('step 5') {
steps {
echo 'deploy project_tenv'
// deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.30.186:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('step 6') {
steps {
echo 'deploy project_tenv'
// deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.30.186:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('step 7') {
steps {
echo 'deploy project_tenv'
//deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.30.186:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('step 8') {
steps {
echo 'deploy project_tenv'
// deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://172.31.30.186:8080/')], contextPath: null, war: '**/*.war'
}
}
}
}