forked from manikumi/JavaProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmyjenkins
More file actions
34 lines (33 loc) · 1008 Bytes
/
myjenkins
File metadata and controls
34 lines (33 loc) · 1008 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
pipeline {
agent { label "projecta" }
stages {
stage('Stage1 clone') {
steps {
echo 'git clone the repo'
git 'https://github.com/vincloud2/Helloworld-latest.git'
}
}
stage('Stage2 Build') {
steps {
echo 'Build the project'
sh "mvn -Dmaven.test.failure.ignore=true clean package"
}
}
stage('Stage3 Deploy') {
steps {
echo 'Deploy the project to Tomcat'
deploy adapters: [tomcat8(credentialsId: 'tomcat_admin', path: '', url: 'http://18.143.74.1:8080/')], contextPath: null, war: '**/*.war'
}
}
stage('Stage6 Deploy') {
steps {
echo 'Deploy the project to test team 2'
}
}
stage('Stage7 Production') {
steps {
echo 'Deploy the project to [production]'
}
}
}
}