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

Another Pull #38

Open
wants to merge 25 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: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
FROM tomcat:8.0.20-jre8
# Dummy text to test
COPY target/maven-web-application*.war /usr/local/tomcat/webapps/maven-web-application.war
COPY target/*.war /usr/local/tomcat/webapps/maven-web-app.war
6 changes: 3 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ node

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

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

Expand Down
41 changes: 41 additions & 0 deletions Jenkinsfile-ebay
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
node {
def mavenHome = tool name: 'maven3.8.2'
stage('1-Clone') {
git credentialsId: 'GitHUB-CREDENTIALS', url: 'https://github.com/Landmark-Technologies/maven-web-application'
}
stage('2-mavenBuild') {
sh "${mavenHome}/bin/mvn clean package"
}
/*
stage('3-CodeQuality') {
sh "${mavenHome}/bin/mvn sonar:sonar"
}
stage('4-UploadArticats') {
sh "${mavenHome}/bin/mvn deploy"
}

stage('5-Deploy-UAT') {
deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
}
stage('6-EmailN') {
emailext body: '''Hello Everyone,

Build from Ebay pipeline project.

Landmark Tecxhnologies''', subject: 'Build status', to: 'developers'
}
stage('Approval'){
timeout(time:8, unit: 'HOURS' ) {
input message: 'Please verify and approve'
}

}
stage('prod-Deploy'){
deploy adapters: [tomcat9(credentialsId: 'deploy', path: '', url: 'http://54.204.83.221:8000/')], contextPath: null, war: 'target/*.war'
}
*/

/*
*/

}
60 changes: 60 additions & 0 deletions Jenkinsfile-sep23
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
node{
def mavenHome = tool name: 'maven3.9.4'
stage('1.CloneCode'){
//Jenkins running on a Linux system
//sh "git clone https://github.com/LandmakTechnology/maven-web-application"
git "https://github.com/LandmakTechnology/maven-web-application"
//Jenkins running on a windows system
//bat "git clone https://github.com/LandmakTechnology/maven-web-application"
}
stage('2.mvnBuild'){
sh "${mavenHome}/bin/mvn clean package"
}
/*
stage('3.CodeQuality'){
//sh "${mavenHome}/bin/mvn sonar:sonar"
//edit pom.xml propertiesTAG with SonarQube server details
}
stage('4.UploadArtifacts'){
//sh "${mavenHome}/bin/mvn deploy"
//edit pom.xml distributionManagement TAG with repository details
//edit settings.xml with nexus-user login credentials
}
stage('5.Deploy2UAT'){
//use deploy-to-container plugin via pipeline syntax
//deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'
//Deploying [/var/lib/jenkins/workspace/tesla-app-pipeline/target/tesla.war]
}
stage('6.6ManualApproval'){
sh "echo 'Please review the application performance' "
//timeout(time:600, unit:'MINUTES') {
//input message: 'Application ready for deployment, Please review and approve'
}
}
stage('7.Deploy2Prod'){
sh "echo 'Deploy application to the customers/production' "
//deploy adapters: [tomcat9(credentialsId: 'tomcat-credentials', path: '', url: 'http://34.219.51.216:8177/')], contextPath: null, war: 'target/*war'

}
stage('8.APM'){
sh "echo 'monitoring and observation and alerting' "
sh "echo 'application performance Monitoring in progress' "
}

stage('9.emailNotification'){
sh "echo 'notify the team for unusual accurances' "
sh "echo 'notify the team if the applications are down' "
sh "echo 'notify the team if the latency is higher that expected' "
emailext body: '''Hi Team,

The build and Deployment status for tesla-app follows.

Regards,
Landmark Technologies ''', recipientProviders: [buildUser(), contributor(), developers(), requestor()], subject: 'build and deployment status', to: '[email protected]'

}

*/
//

}
60 changes: 60 additions & 0 deletions Jenkinsfile_declarative_Sep24
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
pipeline{
agent any
tools{
maven 'maven3.9.9'
}
stages{
stage('1.GitClone'){
steps{
sh "echo cloning the latest app version"
git 'https://github.com/LandmakTechnology/maven-web-application'
}
}
stage('2.mavenbuild'){
steps{
sh "echo creating deployanle packages"
sh 'mvn clean package'
}
}
/*
stage('3.CodeQuality'){
steps{
sh "mvn sonar:sonar"
sh "echo CodeQualityAnalysis completed"
}
}
stage('4.UploadArtifacts'){
steps{
sh "mvn deploy"
sh "echo artifacts uploaded successfully"
sh "echo I am now a Build and Release Engineer"
sh "echo Build and release completed"
}
}
stage('5.Deploy2UAT'){
steps{
sh "echo Deployment is ready for the client review"
sh "echo using deploy to container plugin"
}
}
stage('6approval'){
steps{
sh "echo Deployment is ready for the client review"
sh "echo using deploy to container plugin"
echo "ready for inspection"
timeout(time:5, unit:'DAYS'){
input message: 'Application ready for deployment, Please review and approve'
}
}
}
*/
stage('7.Deploy2Prod'){
steps{
sh "echo application reviewed, approved and ready for the market"
emailext body: 'Hello Review and approve. ', subject: 'success', to: '[email protected]'
}
}
}

}

8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<spring.version>5.1.2.RELEASE</spring.version>
<junit.version>4.11</junit.version>
<log4j.version>1.2.17</log4j.version>
<sonar.host.url>http:3.238.135.186:9000/</sonar.host.url>
<sonar.host.url>http:172.31.27.227:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin</sonar.password>
<sonar.password>admin@123</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>

Expand Down Expand Up @@ -97,13 +97,13 @@
<repository>
<id>nexus</id>
<name>Landmark Technologies Releases Nexus Repository</name>
<url>http://44.192.81.238:8888/mylandmarktech/repository/boa-release/</url>
<url> http://172.31.18.29:8081/repository/ebay-bts-releases/</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>
<url>http://172.31.18.29:8081/repository/ebay-bts-snapshot/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
12 changes: 6 additions & 6 deletions src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
</head>
</head>
<body>
<h1 align="center">Landmark Technologies</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.
The shout of the King is in our midst. His name is JESUS. HE IS OUR SUCCESS ACCESS KEY</h2>
<h1 align="center">Welcome to Landmark Technologies.</h1>
<h2 align="center"> We are supporting the Ebay Black Friday Project.
Landmark Technologies is a software development company.
Class26 will run from October 2, 2021.
The shout of the King Jesus is in our midst. HE IS OUR SUCCESS ACCESS KEY</h2>
<hr>
<div style="text-align: center;">
<span>
<img src="images/log4.png" alt="" width="100">
<img src="images/mylandmarklogo.jpg" alt="" width="200">
</span>
<span style="font-weight: bold;">
Landmark Technology,
Expand Down
Loading