forked from SaiDevOpsFaculty/SaiJavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
26 lines (26 loc) · 680 Bytes
/
Jenkinsfile
File metadata and controls
26 lines (26 loc) · 680 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
pipeline{
agent any
stages{
stage('git clone')
{
steps
{
git credentialsId: 'github', url: 'https://github.com/chakriyekula/SaiJavaCode.git'
}
}
stage('build')
{
steps
{
bat "mvn clean install package"
}
}
stage('copy war')
{
steps
{
bat "copy C:\\Windows\\System32\\config\\systemprofile\\AppData\\Local\\Jenkins\\.jenkins\\workspace\\pipeline_job\\webapp\\target\\*war C:\\Users\\SONY\\Downloads\\apache-tomcat-9.0.48\\webapps"
}
}
}
}