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

My_Web_Apps #20

Open
wants to merge 26 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
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM tomcat:8.0.20-jre8
COPY target/*.war /usr/local/tomcat/webapps/td.war
COPY target/*.war /usr/local/tomcat/webapps/cohort7.war
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# web-app
# new commit

# commit
# Done
51 changes: 51 additions & 0 deletions cohort9
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
pipeline{
agent any
tools{
maven "maven3.8.5"
}
stages{
stage("1.CodeClone"){
steps{
git credentialsId: 'Github-Cred', url: 'https://github.com/acadalearning/web-app.git'
}
}
stage("2. build"){
steps{
sh "echo start of maven build"
sh "mvn clean package"
}
}
stage("3. Code Quality"){
steps{
sh "echo start of code quality"
sh "mvn sonar:sonar"
}
}
stage("4. Backup"){
steps{
sh "echo backup to nexus"
sh "mvn deploy"
}
}
stage("5. Deploy to UAT"){
steps{
sh "echo deploy to UAT Environment"
deploy adapters: [tomcat9(credentialsId: 'tomcat-cred2', path: '', url: 'http://172.31.12.185:7000/')], contextPath: null, war: 'target/*.war'
}
}
stage("6. Approval"){
steps{
sh "echo approval needed"
timeout(time:2, unit:'DAYS'){
input message:'Approval for Production eni'
}
}
}
stage("5. Deploy to Prod"){
steps{
sh "echo deploy to Prod Environment"
deploy adapters: [tomcat9(credentialsId: 'tomcat-cred2', path: '', url: 'http://172.31.12.185:7000/')], contextPath: null, war: 'target/*.war'
}
}
}
}
34 changes: 34 additions & 0 deletions jenkins-cohort8
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
//scripted
node(""){
def MHD = tool name: "maven3.8.6"
stage('GitClone'){
sh "echo this is git clone"
git credentialsId: 'Github-Cred', url: 'https://github.com/acadalearning/web-app.git'
}
stage('Build'){
sh "echo start of build process"
sh "${MHD}/bin/mvn package"
}
stage('CodeQuality'){
sh "echo performing SonarQube Test"
//sh "${MHD}/bin/mvn sonar:sonar"
}
stage('BackupArtifacts'){
sh "echo backup to Nexus"
sh "${MHD}/bin/mvn deploy"
}
stage('DeploytoStaging'){
sh "echo Deploy to Tomcat server"
deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://54.196.234.205:7000/')], contextPath: null, war: 'target/*war'
}
stage('Approval'){
sh "echo approval for Jenkins-file-app"
timeout(time:5, UNIT:'DAYS'){
input message:'Approval for Prod'
}
}
stage('DeploytoProd'){
sh "echo Deploy to Tomcat server"
deploy adapters: [tomcat9(credentialsId: 'Tomcat-cred', path: '', url: 'http://54.196.234.205:7000/')], contextPath: null, war: 'target/*war'
}
}
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>com.mt</groupId>
<artifactId>maven-web-application</artifactId>
<packaging>war</packaging>
<version>2.0.5-SNAPSHOT</version>
<version>2.0.7-SNAPSHOT</version>

<name>maven-web-application</name>

Expand All @@ -21,7 +21,7 @@
<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://172.31.81.112:7000/</sonar.host.url>
<sonar.host.url>http://172.31.20.235:9000/</sonar.host.url>
<sonar.login>admin</sonar.login>
<sonar.password>admin</sonar.password>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down Expand Up @@ -97,13 +97,13 @@
<repository>
<id>nexus</id>
<name>ACADA Learning Releases Nexus Repository</name>
<url>http://172.31.86.108:8081/repository/rbc-app-release/</url>
<url>http://172.31.27.56:8081/repository/rbc-release/</url>
</repository>

<snapshotRepository>
<id>nexus</id>
<name>ACADA Learning Snapshot Nexus Repository </name>
<url>http://172.31.86.108:8081/repository/shared-lib-snapshot/</url>
<url>http://172.31.27.56:8081/repository/rbc-snapshot/</url>
</snapshotRepository>

</distributionManagement>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/jsps/home.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<body>
<h1 align="center">Welcome to Acada Learning, Calgary, Canada Office.</h1>
<h1 align="center">We are developing and supporting quality Software Solutions to millions of clients.
We offer Training for DevOps with Linux and Cloud equipping IT Engineers for best performance. God Loves you. Everyone will be hired </h1>
We offer Training for DevOps with Linux and Cloud equipping IT Engineers for best performance. God Loves you. Everyone will be hired with multiple job offers, Amen</h1>
<hr>
<br>
<h1><h3> Server Side IP Address </h3><br>
Expand Down