Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loans #30

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 46 additions & 26 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,28 +1,48 @@
node('master')


pipeline
{
stage('ContinuousDownload')
{
git 'https://github.com/intelliqittrainings/maven.git'
}
stage('ContinuousBuild')
{
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/testapp.war'''
}
stage('ContinuousTesting')
{
git 'https://github.com/intelliqittrainings/FunctionalTesting.git'

sh label: '', script: 'java -jar /home/ubuntu/.jenkins/workspace/ScriptedPipeline/testing.jar'
}
stage('ContinuousDelivery')
{
sh label: '', script: '''
scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war [email protected]:/var/lib/tomcat8/webapps/prodapp.war'''
}

agent any
stages
{
stage('ContinuousDownload-Loans')
{
steps
{
script
{
try
{
git 'https://github.com/intelliqittrainings/maven.git'
}
catch(Exception e1)
{
mail bcc: '', body: 'Jenkins is unable to download the code from remote git server', cc: '', from: '', replyTo: '', subject: 'Download failed', to: '[email protected]'
exit(1)
}
}

}
}
stage('ContinuousBuild-Loans')
{
steps
{
script
{
try
{
sh label: '', script: 'mvn package'
}
catch(Exception e2)
{
mail bcc: '', body: 'Jenkins is unable to create an artifact from the code', cc: '', from: '', replyTo: '', subject: 'Build failed', to: '[email protected]'
exit(1)
}
}

}

}
}
}
Empty file added f678
Empty file.
Empty file added fg
Empty file.
5 changes: 5 additions & 0 deletions file33
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dffdsfds
zvcxv


zcvcx
Empty file added ggggg
Empty file.