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 Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM tomcat:8.0.20-jre8
FROM tomcat:9.0
# Dummy text to test
COPY target/maven-web-application*.war /usr/local/tomcat/webapps/maven-web-application.war
27 changes: 10 additions & 17 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,54 +1,47 @@
node
{

def mavenHome = tool name: "maven3.6.2"
def mavenHome = tool name: "maven3.9.2"

echo "GitHub BranhName ${env.BRANCH_NAME}"
echo "Jenkins Job Number ${env.BUILD_NUMBER}"
echo "Jenkins Node Name ${env.NODE_NAME}"

echo "Jenkins Home ${env.JENKINS_HOME}"
echo "Jenkins URL ${env.JENKINS_URL}"

echo "JOB Name ${env.JOB_NAME}"

properties([[$class: 'JiraProjectProperty'], buildDiscarder(logRotator(artifactDaysToKeepStr: '', artifactNumToKeepStr: '2', daysToKeepStr: '', numToKeepStr: '2')), pipelineTriggers([pollSCM('* * * * *')])])


stage("CheckOutCodeGit")
{
git branch: 'development', credentialsId: '65fb834f-a83b-4fe7-8e11-686245c47a65', url: 'https://github.com/MithunTechnologiesDevOps/maven-web-application.git'
git credentialsId: 'Gitid', url: 'https://github.com/realblegend/maven-web-app.git'
}

stage("Build")
{
sh "${mavenHome}/bin/mvn clean package"
}

/*
stage("ExecuteSonarQubeReport")
{
sh "${mavenHome}/bin/mvn sonar:sonar"
}

/*
stage("UploadArtifactsintoNexus")
{
sh "${mavenHome}/bin/mvn deploy"
}

*/
stage("DeployAppTomcat")
{
sshagent(['423b5b58-c0a3-42aa-af6e-f0affe1bad0c']) {
sh "scp -o StrictHostKeyChecking=no target/maven-web-application.war [email protected]:/opt/apache-tomcat-9.0.34/webapps/"
}
deploy adapters: [tomcat9(credentialsId: '226b4bb7-f7e4-4707-abbb-81f033e9a69e', path: '', url: 'http://35.208.56.74:8089/')], contextPath: null, war: '*/*war'
}

stage('EmailNotification')
{
mail bcc: 'devopstrainingblr@gmail.com', body: '''Build is over
mail bcc: 'bepapaul65@gmail.com', body: '''Build is over

Thanks,
Mithun Technologies,
9980923226.''', cc: 'devopstrainingblr@gmail.com', from: '', replyTo: '', subject: 'Build is over!!', to: 'devopstrainingblr@gmail.com'
9980923226.''', cc: 'bepapaul65@gmail.com', from: '', replyTo: '', subject: 'Build is over!!', to: 'bepapaul65@gmail.com'
}
*/


}
15 changes: 6 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,8 @@
<sonar.password>admin</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

<properties>
<sonar.organization>mylandmarktechs</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>
<sonar.organization>mylandmarktechs</sonar.organization>
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
</properties>

<dependencies>
Expand Down Expand Up @@ -100,14 +97,14 @@
<distributionManagement>
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url>http://44.192.81.238:8888/mylandmarktech/repository/boa-release/</url>
<name>Realblegend Releases Nexus Repository</name>
<url>http://35.208.56.74:9000/repository/webappreleases/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>Landmark Technologies Snapshot Nexus Repository </name>
<url>http://44.192.81.238:8888/mylandmarktech/repository/boa-snapshot/</url>
<name>Realblegend Snapshot Nexus Repository </name>
<url>http://35.208.56.74:9000/repository/webappsnapshots/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
Binary file added src/main/webapp/images/Capture.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>MylandmarkTech.com- Home Page</title>
<link href="images/log4.png" rel="icon">
<title>Congrat- About us</title>
<link href="images/Capture.png" rel="icon">
</head>
</head>
<body>
<h1 align="center">Landmark Technologies</h1>
<h1 align="center">CONGRATULATIONsssssssss ON YOUR FIRST PROJECT</h1>
<h2 align="center"> Welcome to Landmark Technology.
Landmark Technology is a an ideal online training platform for DevOps and Cloud Engineers.
We offer interview preparations and job assitance.
Expand All @@ -22,7 +23,7 @@
<span style="font-weight: bold;">
Landmark Technology,
Toronto, Ontario, Canada
+1 437 215 2483,
+1 4703226087,
[email protected]
<br>
<a href="mailto:[email protected]">Mail to Landmark Technologies</a>
Expand Down