forked from tsri010203/mycode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJenkinsfile
More file actions
23 lines (23 loc) · 694 Bytes
/
Jenkinsfile
File metadata and controls
23 lines (23 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
node('built-in')
{
stage('Continuous Download')
{
git 'https://github.com/sunildevops77/maven.git'
}
stage('Continuous Build')
{
sh label: '', script: 'mvn package'
}
stage('Continuous Deployment')
{
sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war ubuntu@172.31.26.217:/var/lib/tomcat8/webapps/qaenv.war'
}
stage('Continuous Testing')
{
sh label: '', script: 'echo "Testing Passed"'
}
stage('Continuous Delivery')
{
sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war ubuntu@172.31.22.88:/var/lib/tomcat8/webapps/prodenv.war'
}
}