forked from ranjit4github/devOpsWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
30 lines (28 loc) · 732 Bytes
/
Jenkinsfile
File metadata and controls
30 lines (28 loc) · 732 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
pipeline {
agent any
tools {
maven 'MAVEN'
}
stages{
stage('Build'){
steps {
sh 'mvn clean package'
}
post {
success {
echo 'Archiving the artifacts'
archiveArtifacts artifacts: '**/target/*.war'
}
}
}
stage ('Deployments'){
parallel{
stage ("Deploy to Staging"){
steps {
deploy adapters: [tomcat9(credentialsId: 'tom', path: '', url: 'http://35.92.109.243:8080/')], contextPath: null, war: '**/*.war'
}
}
}
}
}
}