-
Notifications
You must be signed in to change notification settings - Fork 423
Expand file tree
/
Copy pathJenkinsfile2
More file actions
35 lines (26 loc) · 727 Bytes
/
Jenkinsfile2
File metadata and controls
35 lines (26 loc) · 727 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
35
pipeline {
agent any
tools {
jdk 'JAVA1.8'
}
stages {
stage('CLONE SCM') {
steps {
echo 'cloning code from Github'
git branch: 'main', url: 'https://github.com/devopstraininghub/webapp1.git'
}
}
stage('Build Artifact') {
steps {
echo 'Build Artifact with maven build tool'
sh 'mvn clean sonar:sonar deploy'
}
}
stage('Deploy') {
steps {
echo 'Deploy to tomcat ap/n server '
deploy adapters: [tomcat9(credentialsId: 'tomcat', path: '', url: 'http://34.224.5.225:8081/')], contextPath: 'b12book', war: '**/*.war'
}
}
}
}