-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathjenkinsfile
More file actions
28 lines (23 loc) · 714 Bytes
/
jenkinsfile
File metadata and controls
28 lines (23 loc) · 714 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
pipeline {
agent any
stages {
stage('GIT CLONE SCM') {
steps {
echo "CLONING code from Github repo"
git branch: 'main', url: 'https://github.com/devopstraininghub/mindcircuit14.git'
}
}
stage('BUILD ') {
steps {
echo "Building code "
sh 'mvn clean install'
}
}
stage('TOMCAT DEPLOY') {
steps {
echo "Deploying war file to tomcat"
deploy adapters: [tomcat9(credentialsId: 'tomcat', path: '', url: 'http://ec2-54-173-89-134.compute-1.amazonaws.com:8091/')], contextPath: 'facebook', war: '**/*.war'
}
}
}
}