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

Mtaxman #2

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
Empty file modified .gitignore
100644 → 100755
Empty file.
10 changes: 5 additions & 5 deletions Jenkinsfile
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ pipeline {
agent any

parameters {
string(name: 'tomcat_dev', defaultValue: '35.166.210.154', description: 'Staging Server')
string(name: 'tomcat_prod', defaultValue: '34.209.233.6', description: 'Production Server')
string(name: 'tomcat_dev', defaultValue: '3.80.196.124', description: 'Staging Server')
string(name: 'tomcat_prod', defaultValue: '34.204.99.2', description: 'Production Server')
}

triggers {
Expand All @@ -27,16 +27,16 @@ stages{
parallel{
stage ('Deploy to Staging'){
steps {
sh "scp -i /home/jenkins/tomcat-demo.pem **/target/*.war ec2-user@${params.tomcat_dev}:/var/lib/tomcat7/webapps"
sh "scp -o StrictHostKeyChecking=no -i /home/mauricio/aws-cert/newnvirginiakeypair.pem **/target/*.war ec2-user@${params.tomcat_dev}:/var/lib/tomcat/webapps"
}
}

stage ("Deploy to Production"){
steps {
sh "scp -i /home/jenkins/tomcat-demo.pem **/target/*.war ec2-user@${params.tomcat_prod}:/var/lib/tomcat7/webapps"
sh "scp -o StrictHostKeyChecking=no -i /home/mauricio/aws-cert/newnvirginiakeypair.pem **/target/*.war ec2-user@${params.tomcat_prod}:/var/lib/tomcat/webapps"
}
}
}
}
}
}
}
Empty file modified README.md
100644 → 100755
Empty file.
Empty file modified pom.xml
100644 → 100755
Empty file.
Empty file modified server/pom.xml
100644 → 100755
Empty file.
Empty file modified server/src/main/java/com/example/Greeter.java
100644 → 100755
Empty file.
Empty file modified server/src/site/apt/index.apt
100644 → 100755
Empty file.
Empty file modified server/src/test/java/com/example/TestGreeter.java
100644 → 100755
Empty file.
Empty file modified webapp/pom.xml
100644 → 100755
Empty file.
Empty file modified webapp/src/main/webapp/WEB-INF/web.xml
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion webapp/src/main/webapp/index.jsp
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Hello, World! Version 10
Hello, World! Version 7
Empty file modified webapp/src/site/apt/index.apt
100644 → 100755
Empty file.