diff --git a/Dockerfile b/Dockerfile
index 74a00407b6..a282067035 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
diff --git a/Jenkinsfile b/Jenkinsfile
index 82d63ae784..f393b56cb2 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -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'
}
*/
diff --git a/Jenkinsfile-ebay b/Jenkinsfile-ebay
new file mode 100644
index 0000000000..a818e5c663
--- /dev/null
+++ b/Jenkinsfile-ebay
@@ -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'
+ }
+ */
+
+ /*
+ */
+
+}
diff --git a/Jenkinsfile-sep23 b/Jenkinsfile-sep23
new file mode 100644
index 0000000000..2215249018
--- /dev/null
+++ b/Jenkinsfile-sep23
@@ -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: 'mylandmarktech@gmail.com'
+
+ }
+
+*/
+//
+
+}
diff --git a/Jenkinsfile_declarative_Sep24 b/Jenkinsfile_declarative_Sep24
new file mode 100644
index 0000000000..b1f7d43695
--- /dev/null
+++ b/Jenkinsfile_declarative_Sep24
@@ -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: 'mylandmarktech@gmail.com'
+ }
+}
+ }
+
+}
+
diff --git a/pom.xml b/pom.xml
index 3c18c3bbad..536b67a8c1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -21,9 +21,9 @@