-
Notifications
You must be signed in to change notification settings - Fork 208
/
Copy pathjenkinsfile3
30 lines (29 loc) · 878 Bytes
/
jenkinsfile3
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
pipeline {
agent any
tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "Maven"
}
stages {
stage('Sample-Mini-Project') {
steps {
echo 'Started Sample-Project'
}
}
stage('SCM-clone') {
steps {
git credentialsId: 'c2b23aa5-8fe6-4445-b979-9d13c1481ed8', url: 'https://github.com/polarapu/maven-project1.git'
}
}
stage('Mvn-build') {
steps {
sh "mvn clean install"
}
}
stage('Tomcat-deploy') {
steps {
deploy adapters: [tomcat9(credentialsId: '3e25b6ea-a898-4aa5-9af0-fa20aa7a1e43', path: '', url: 'http://192.168.75.128:8081/')], contextPath: 'devops100.war', war: '**/*.war'
}
}
}
}