Groovy Script
Groovy Script
{
agent any
stages
{
stage('continuos download')
{
steps{
git 'https://github.com/selenium-saikrishna/maven.git'
}
}
stage('continuos build')
{
steps{
sh '''mvn clean
mvn package'''
}
}
stage('continuous deployment')
{
steps{
sh 'scp /var/lib/jenkins/workspace/Pipeline/webapp/target/webapp.war
[email protected]:/var/lib/tomcat7/webapps/qaenv.war'
}
}
stage('continuous testing')
{
steps{
git 'https://github.com/selenium-saikrishna/testing.git'
sh 'java -jar /var/lib/jenkins/workspace/Pipeline/testing.jar'
}
}
}
post{
success{
}
}