-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
26 lines (25 loc) · 914 Bytes
/
Jenkinsfile
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
node('master')
{
stage('ContinuousDownload')
{
git 'https://github.com/intelliqittrainings/maven.git'
}
stage('ContnuousBuild')
{
sh label: '', script: 'mvn package'
}
stage('ContinuousDeployment')
{
sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war [email protected]:/var/lib/tomcat8/webapps/qaapp.war'
}
stage('ContinuousTesting')
{
git 'https://github.com/selenium-saikrishna/FunctionalTesting.git'
sh label: '', script: 'java -jar /home/ubuntu/.jenkins/workspace/ScriptedPipeline/testing.jar'
}
stage('ContinuosDelivery')
{
input message: 'Waiting for Approval from the Delivery Manager!', submitter: 'srinivas'
sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war [email protected]:/var/lib/tomcat8/webapps/prodapp.war'
}
}