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

Branch #29

Open
wants to merge 10 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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ Hello World! (WAR-style)
===============

This is the simplest possible Java webapp for testing servlet container deployments. It should work on any container and requires no other dependencies or configuration.
command to build:mvn clean package
hello
hi
13 changes: 13 additions & 0 deletions hello
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pipeline {
agent any
stages {
stage('hello') {
steps {
sh "git clone https://github.com/soumyashree28/hello-world-war"
}
}
stage('build') {
steps {
sh "mvn clean package"
}
}
20 changes: 20 additions & 0 deletions jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
pipeline {
agent any
stages {
stage('checkout') {
steps {
sh "git clone https://github.com/soumyashree28/hello-world-war"
}
}
stage('build') {
steps {
sh "mvn clean package"
}
}
stage('deploy') {
steps {
sh "cp /var/lib/jenkins/workspace/jenkinsfile/target/hello-world-war-1.0.0.war /opt/apache-tomcat-9.0.60/webapps/"
}
}
}
}