Skip to content
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
26 changes: 26 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
pipeline {
agent any
environment {
PATH = "/opt/apache-maven-3.6.3/bin:$PATH"
}
stages {
stage("clone code"){
steps{
git credentialsId: 'git_credentials', url: 'https://github.com/ravdy/hello-world.git'
}
}
stage("build code"){
steps{
sh "mvn clean install"
}
}
stage("deploy"){
steps{
sshagent(['deploy_user']) {
sh "scp -o StrictHostKeyChecking=no webapp/target/webapp.war ec2-user@13.229.183.126:/opt/apache-tomcat-8.5.55/webapps"

}
}
}
}
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# maven-project

Simple Maven Project

I am Dineshkumar.M , Waste fellow

1234567890100000000000000
1 change: 1 addition & 0 deletions sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
HI I AM DINESH STILL AS SINGLE
5 changes: 4 additions & 1 deletion webapp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
Hello, Welcome to Valaxy Technologies!!
<h1> WELCOME DINESKUMAR </h1>
<h2> I NEED A GOOD JOB </h2>