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
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ stage("Deploy to staging") {

sh "docker stop \$(docker ps -qa)"
sh "docker rm \$(docker ps -qa)"
sh "docker run -d -it -v /var/lib/jenkins/workspace/docker-tomcat-example/target/:/usr/local/tomcat/webapps/ -p 8091:8080 --name Testtomcat deepak_tomcat"
sh "docker run -d -it -v /var/lib/jenkins/workspace/Ethans-docker-tomcat-example/target/:/usr/local/tomcat/webapps/ -p 8091:8080 --name Testtomcat deepak_tomcat"
}
}

Expand Down
17 changes: 3 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,12 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jenkins.demo</groupId>
<artifactId>JenkinsWar1</artifactId>
<artifactId>MyWebApp</artifactId>
<packaging>war</packaging>
<version>0.0.4-SNAPSHOT</version>
<name>JenkinsWar Maven Webapp</name>
<url>http://maven.apache.org</url>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<configLocation>file:///C/Users/Nivaan/jenkins/workspace/TomcatDeployment/checkstyle.xml</configLocation>
</configuration>
</plugin>
</plugins>
</reporting>

<dependencies>
<dependency>
<groupId>junit</groupId>
Expand All @@ -28,6 +17,6 @@
</dependency>
</dependencies>
<build>
<finalName>JenkinsWar</finalName>
<finalName>MyWebApp</finalName>
</build>
</project>
5 changes: 3 additions & 2 deletions src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<html>
<body>
<h1>Ethans!! APP!</h1>
<h2>Jenkins Successfully Deloyed War file in Tomcat 8!</h2>
<h1>Ethans!! APP! by Batch 588</h1>
<h2>Jenkins Successfully Deloyed War file in Tomcat 8</h2>

<h1>We are Deploying Web App in a apache tomcat container version 8!!</h1>
<h3> We know how deploy to container plugin works</h3>

</body>
</html>