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
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Jenkins-decnew
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline{
stages{
stage("Git Checkout"){
steps{
git credentialsId: 'javahome2', url: 'https://github.com/srinivas1987devops/myweb.git'
git credentialsId: 'automation', url: 'https://github.com/saikiran7948/myweb.git'
}
}
stage("Maven Build"){
Expand All @@ -18,13 +18,13 @@ pipeline{
}
stage("deploy-dev"){
steps{
sshagent(['tomcat-new']) {
sshagent(['tomcat-new1']) {
sh """
scp -o StrictHostKeyChecking=no target/myweb.war ec2-user@172.31.10.233:/home/ec2-user/apache-tomcat-9.0.64/webapps/
scp -o StrictHostKeyChecking=no target/myweb.war ec2-user@172.31.44.181:/home/ec2-user/apache-tomcat-9.0.107/webapps/

ssh ec2-user@172.31.10.233 /home/ec2-user/apache-tomcat-9.0.64/bin/shutdown.sh
ssh ec2-user@172.31.44.181 /home/ec2-user/apache-tomcat-9.0.107/bin/shutdown.sh

ssh ec2-user@172.31.10.233 /home/ec2-user/apache-tomcat-9.0.64/bin/startup.sh
ssh ec2-user@172.31.44.181 /home/ec2-user/apache-tomcat-9.0.107/bin/startup.sh

"""
}
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ resource "aws_instance" "web7" {
instance_type = "${lookup(var.instancetype, var.region)}"

tags = {
Name = "HelloWorld9"
Name = "HelloWorld9000"
}
}
121 changes: 73 additions & 48 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,49 +1,74 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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>in.javahome</groupId>
<artifactId>myweb</artifactId>
<packaging>war</packaging>
<version>8.2.0</version>
<name>Java Home myweb</name>
<url>http://maven.apache.org</url>

<properties>
<docker.image.prefix>kammana</docker.image.prefix>
<sonar.host.url>http://18.181.164.81:9000/</sonar.host.url>

</properties>
<dependencies>


<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>

</dependencies>

<distributionManagement>
<snapshotRepository>
<id>nexusRepo</id>
<url>http://54.178.74.89:8081/repository/sample-snapshots/</url>
</snapshotRepository>

<repository>
<id>nexusRepo</id>
<url>http://54.178.74.89:8081/repository/sample-releases/</url>
</repository>
</distributionManagement>

<pluginRepositories>
<pluginRepository>
<id>maven1</id>
<name>Maven.org</name>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>


<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>in.javahome</groupId>
<artifactId>myweb</artifactId>
<packaging>war</packaging>
<version>8.2.0-SNAPSHOT</version>
<name>Java Home myweb</name>
<url>http://maven.apache.org</url>

<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<docker.image.prefix>kammana</docker.image.prefix>
<sonar.host.url>http://18.181.164.81:9000/</sonar.host.url>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
<plugins>
<!-- Java Compiler Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
</configuration>
</plugin>

<!-- WAR Plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>

<distributionManagement>
<snapshotRepository>
<id>nexusRepo</id>
<url>http://3.16.49.1:8081/repository/sample-snapshots/</url>
</snapshotRepository>
<repository>
<id>nexusRepo</id>
<url>http://3.16.49.1:8081/repository/sample-releases/</url>
</repository>
</distributionManagement>

<pluginRepositories>
<pluginRepository>
<id>maven1</id>
<name>Maven.org</name>
<url>http://repo1.maven.org/maven2</url>
</pluginRepository>
</pluginRepositories>

</project>
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"http://java.sun.com/dtd/web-app_2_3.dtd" >

<web-app>
<display-name>Archetype Created Web Application</display-name>
<display-name>Archetype Create Web Application</display-name>
</web-app>
2 changes: 1 addition & 1 deletion src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<body>
<h1 style="color: green; font-size: 40px;" align="center"> GANA TECH APP VERSION-26000</h1>
<h1 style="color: green; font-size: 40px;" align="center"> one project </h1>
</body>
</html>