8000 GitHub - praddevops/webapp: Jenkins cicd demo to deploy Java application | mirrored (App source code only) from https://github.com/sebsto/webapp · GitHub
[go: up one dir, main page]

Skip to content
praddevopsPublic

About

Jenkins cicd demo to deploy Java application | mirrored (App source code only) from https://github.com/sebsto/webapp

Resources

Stars

0 stars

Watchers

1 watching

Forks

< 8000 /div>

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

mirrored from https://github.com/sebsto/webapp

This is a sample Web Application to use during Continuous Integration demos.

Build Instruction

mvn clean package

Deploy instruction

Deploy target/WebApp.war on Tomcat

CICD

Jenkinsfile based CICD

  • Jenkins input: TomcatHost(Tomcat server IP), RemoteHost_UserName(defaultValue: jenkins| username you want to connect as, to the remote host. Ex: For AWS EC2 Amazon Linux 2 AMI: ec2-user)

  • ssh key stored in Jenkins Credentials with name 'ssh_key' for logging into tomcat instance

  • uses scp to deploy WebApp.war on the Tomcat server at location /opt/tomcat/webapps/

  • Additional required Jenkins plugins: AnsiColor, Pipeline Utility Steps

Tomcat Server setup:

  • Tomcat version: 8.X.XX

  • Tomcat location: /opt/tomcat

  • To view the webapp on the browser go to [TOMCAT_IP]:8080/WebApp

note: make sure correct permissions are set on /opt/tomcat, when creating Tomcat server on the target machine. For reference on how to setup Tomcat on a GCP instance: https://github.com/praddevops/ansible_install_packages

About

Jenkins cicd demo to deploy Java application | mirrored (App source code only) from https://github.com/sebsto/webapp

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0