Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
17facc3
Prajwal commit
prajwal1691 Dec 27, 2022
41540d9
Merge pull request #1 from prajwal1691/main
prajwal1691 Dec 27, 2022
5d585fa
Create Poll Scm
prajwal1691 Dec 30, 2022
2ff8fc4
Create Webhook
prajwal1691 Dec 30, 2022
beb3270
Update Webhook
prajwal1691 Dec 30, 2022
0c02536
Delete Poll Scm
prajwal1691 Dec 30, 2022
389162c
Update Webhook
prajwal1691 Dec 30, 2022
728c9b1
Delete Webhook
prajwal1691 Dec 30, 2022
427ce4c
Update README.md
prajwal1691 Jan 3, 2023
915c3a0
Update README.md
prajwal1691 Jan 3, 2023
cf85ad1
Update README.md
prajwal1691 Jan 3, 2023
516d651
Create Jenkinsfile
prajwal1691 Jan 6, 2023
716aea8
Update Jenkinsfile
prajwal1691 Jan 6, 2023
a79a2fc
Update Jenkinsfile
prajwal1691 Jan 6, 2023
f9da3cf
Update Jenkinsfile
prajwal1691 Jan 6, 2023
edd84ab
Update Jenkinsfile
prajwal1691 Jan 6, 2023
c21576f
Update Jenkinsfile
prajwal1691 Jan 10, 2023
cbad00b
Update Jenkinsfile
prajwal1691 Jan 10, 2023
eab101d
Update Jenkinsfile
prajwal1691 Jan 10, 2023
c1e1062
Update Jenkinsfile
prajwal1691 Jan 10, 2023
4f32d85
Update Jenkinsfile
prajwal1691 Jan 10, 2023
8cee9ba
Update Jenkinsfile
prajwal1691 Jan 10, 2023
2f67263
Update Jenkinsfile
prajwal1691 Jan 10, 2023
71939f8
Create pr check
prajwal1691 Jan 10, 2023
aa55239
Update pr check
prajwal1691 Jan 10, 2023
986331e
Merge pull request #2 from prajwal1691/feature1
prajwal1691 Jan 10, 2023
f02fb29
Delete pr check
prajwal1691 Jan 10, 2023
e348476
Update Jenkinsfile
prajwal1691 Jan 11, 2023
c1a989e
Update Jenkinsfile
prajwal1691 Jan 11, 2023
d2a2fa4
Create Dockerfile
prajwal1691 Feb 1, 2023
7988709
Update Dockerfile
prajwal1691 Feb 1, 2023
360128c
Update Dockerfile
prajwal1691 Feb 1, 2023
0122fc3
Update Dockerfile
prajwal1691 Feb 1, 2023
c977a2d
Update index.jsp
prajwal1691 Feb 2, 2023
0f72107
Update index.jsp
prajwal1691 Feb 2, 2023
090f810
Update index.jsp
prajwal1691 Feb 2, 2023
ed1ff50
Update Jenkinsfile
prajwal1691 Feb 2, 2023
4638bd3
Update Jenkinsfile
prajwal1691 Feb 2, 2023
c069db3
Update Jenkinsfile
prajwal1691 Feb 2, 2023
fcedbd9
Update Jenkinsfile
prajwal1691 Feb 3, 2023
f118fa3
Update Jenkinsfile
prajwal1691 Feb 3, 2023
a3b25f9
Update pom.xml
prajwal1691 Feb 3, 2023
6ece962
Update Jenkinsfile
prajwal1691 Mar 9, 2023
23a1f1f
Update Jenkinsfile
prajwal1691 Mar 9, 2023
96ac39c
Create sonar-project.properties
prajwal1691 Mar 9, 2023
5e84a77
Update Jenkinsfile
prajwal1691 Mar 9, 2023
ac40c11
Update Jenkinsfile
prajwal1691 Mar 9, 2023
8c5e0b5
Update Jenkinsfile
prajwal1691 Mar 9, 2023
77a9912
Update Jenkinsfile
prajwal1691 Mar 9, 2023
618ac1e
Update index.jsp
prajwal1691 Mar 9, 2023
05bd4b2
Update Jenkinsfile
prajwal1691 Mar 9, 2023
b0268e4
Update Jenkinsfile
prajwal1691 Mar 9, 2023
3f9b011
Update Jenkinsfile
prajwal1691 Mar 9, 2023
2d65fa3
Update Jenkinsfile
prajwal1691 Mar 10, 2023
30b55d7
Update Jenkinsfile
prajwal1691 Mar 10, 2023
1527f13
Update index.jsp
prajwal1691 Mar 19, 2023
aa1b060
Update index.jsp
prajwal1691 Mar 19, 2023
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
10 changes: 7 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
From tomcat:8-jre8

COPY ./target/hello-world.war /usr/local/tomcat/webapps
FROM ubuntu
RUN apt-get update
RUN apt-get install -y git
RUN git clone https://github.com/prajwal1691/hello-world.git
RUN apt-get install -y maven
WORKDIR /hello-world
RUN mvn clean install
30 changes: 30 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
pipeline {
agent any

stages {
stage('CHECKOUT') {
steps {
git branch: 'main', url: 'https://github.com/prajwal1691/hello-world'
}
}
stage('BUILD') {
steps {
sh 'cd /var/jenkins_home/workspace/sonar'
sh 'mvn clean install'
}
}
stage('Sonarqube') {
environment {
scannerHome = tool 'SonarQubeScanner'
}
steps {
withSonarQubeEnv('sonarqube') {
sh "${scannerHome}/bin/sonar-scanner -Dsonar.java.binaries=/var/jenkins_home/workspace/sonar/target"
}
timeout(time: 1, unit: 'MINUTES') {
waitForQualityGate abortPipeline: true
}
}
}
}
}
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# Maven web application project

### Clean fresh application code is available in hell-world-maven branch and hello-world-maven tag
To clone the hello-world-maven branch
```
git clone -b hello-world-maven https://github.com/vigneshsweekaran/hello-world.git
# To generate the package
```
### To generate the package
### mvn clean package
```
mvn clean package
```
### War file is generated in target/hello-world.war
# War file is generated in target/hello-world.war
26 changes: 0 additions & 26 deletions appspec.yml

This file was deleted.

50 changes: 0 additions & 50 deletions buildspec.yml

This file was deleted.

15 changes: 0 additions & 15 deletions cicd/01-Jenkinsfile-helloworld

This file was deleted.

13 changes: 0 additions & 13 deletions cicd/02-Jenkinsfile-maven-build

This file was deleted.

20 changes: 0 additions & 20 deletions cicd/03-Jenkinsfile-deploy-to-tomcat

This file was deleted.

41 changes: 0 additions & 41 deletions cicd/04-Jenkinsfile-docker-build-push-deploy-same-server

This file was deleted.

41 changes: 0 additions & 41 deletions cicd/05-Jenkinsfile-docker-build-push-to-artifactory

This file was deleted.

48 changes: 0 additions & 48 deletions cicd/06-Jenkinsfile-docker-build-push-to-artifactory-condition

This file was deleted.

This file was deleted.

Loading