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

Devops Java Code #44

Open
wants to merge 88 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
4d79bfb
updated
devops-trainer Nov 26, 2019
e5f9193
again updated
devops-trainer Nov 26, 2019
78591e1
new jenkinsfile text file
devops-trainer Nov 28, 2019
879effb
Rename the file
devops-trainer Nov 28, 2019
ad266b8
Update Jenkinsfile
devops-trainer Nov 28, 2019
aba0950
Update Jenkinsfile
devops-trainer Nov 28, 2019
8278b47
Update Jenkinsfile
devops-trainer Nov 28, 2019
e68c760
Delete Jenkinsfile
devops-trainer Nov 30, 2019
d9a138f
Create Jenkinsfile
devops-trainer Nov 30, 2019
2f69b69
Delete Jenkinsfile
devops-trainer Nov 30, 2019
3606d79
Create Jenkinsfile
devops-trainer Nov 30, 2019
769ce92
Delete Jenkinsfile
devops-trainer Jan 25, 2020
c6dac59
Create Jenkinsfile
devops-trainer Jan 25, 2020
0abc4cc
Delete Jenkinsfile
devops-trainer Jan 28, 2020
44e05a8
Create Jenkinsfile
devops-trainer Jan 28, 2020
73ed5e2
Update Jenkinsfile
devops-trainer Jan 28, 2020
27a5f0f
Update Jenkinsfile
devops-trainer Jan 28, 2020
1c8f4dc
Delete Jenkinsfile
devops-trainer Mar 3, 2020
c8cf953
Create Jenkinsfile
devops-trainer Mar 3, 2020
c31561f
Update Jenkinsfile
devops-trainer Mar 3, 2020
aba9ce1
Update Jenkinsfile
devops-trainer Mar 3, 2020
e3914bd
Update Jenkinsfile
devops-trainer Mar 7, 2020
81440b4
Update Jenkinsfile
devops-trainer May 9, 2020
592ed6b
Create JenkinsFile1
devops-trainer Jun 13, 2020
84f5e15
Update JenkinsFile1
devops-trainer Jul 5, 2020
8554279
Update README.md
devops-trainer Sep 6, 2020
d154466
Update Jenkinsfile
Sonal0409 Jan 30, 2021
70a2ed9
Update Jenkinsfile
Sonal0409 Jan 30, 2021
e1e50e5
Update Jenkinsfile
Sonal0409 Jan 31, 2021
ad9417b
Update Jenkinsfile
Sonal0409 Jan 31, 2021
9b44545
Update Jenkinsfile
Sonal0409 Feb 1, 2021
20295e6
Update Jenkinsfile
Sonal0409 Feb 8, 2021
37a8ee9
Update Jenkinsfile
Sonal0409 Feb 19, 2021
6d7e163
Update Jenkinsfile
Sonal0409 Feb 27, 2021
fa5adc5
Update Jenkinsfile
Sonal0409 Mar 6, 2021
ca39eb3
Update Jenkinsfile
Sonal0409 Mar 6, 2021
d9bc89b
Update Jenkinsfile
Sonal0409 Mar 9, 2021
d7ca14d
Update Jenkinsfile
Sonal0409 Apr 6, 2021
875edbe
Update Jenkinsfile
Sonal0409 Apr 6, 2021
b5d709e
Update Jenkinsfile
Sonal0409 Apr 6, 2021
609059b
Update Jenkinsfile
Sonal0409 Apr 6, 2021
1709735
Update Jenkinsfile
Sonal0409 Apr 18, 2021
f60b3e7
Update Jenkinsfile
Sonal0409 Jun 8, 2021
5da3911
Update Jenkinsfile
Sonal0409 Jun 10, 2021
ab10011
Update README.md
Sonal0409 Jun 28, 2021
3188129
Update Jenkinsfile
Sonal0409 Jul 5, 2021
7167161
Update Jenkinsfile
Sonal0409 Jul 13, 2021
d734b28
Update JenkinsFile1
Sonal0409 Jul 16, 2021
a3bd9c5
Update JenkinsFile1
Sonal0409 Aug 1, 2021
53d7b48
Update Jenkinsfile
Sonal0409 Aug 7, 2021
b818b58
Update JenkinsFile1
Sonal0409 Aug 9, 2021
00009a9
Update Jenkinsfile
Sonal0409 Sep 29, 2021
a9c4bc6
Update Jenkinsfile
Sonal0409 Oct 1, 2021
9d61749
Update JenkinsFile1
Sonal0409 Dec 4, 2021
6883c94
Update JenkinsFile1
Sonal0409 Dec 5, 2021
90f377e
Update JenkinsFile1
Sonal0409 Dec 9, 2021
fe6631b
Update JenkinsFile1
Sonal0409 Dec 11, 2021
da99968
Update JenkinsFile1
Sonal0409 Dec 15, 2021
687e7ce
Update JenkinsFile1
Sonal0409 Dec 19, 2021
4b5d98f
Update JenkinsFile1
Sonal0409 Jan 10, 2022
e7326bf
Update Jenkinsfile
Sonal0409 Jan 12, 2022
dad454d
Update Jenkinsfile
Sonal0409 Jan 12, 2022
6f8607b
Update JenkinsFile1
Sonal0409 Jan 30, 2022
e0a962a
Update JenkinsFile1
Sonal0409 Feb 8, 2022
8585de3
Update JenkinsFile1
Sonal0409 Feb 13, 2022
bbcba32
Update JenkinsFile1
Sonal0409 Feb 14, 2022
2d2d8b1
Update JenkinsFile1
Sonal0409 Feb 14, 2022
ae0c583
Update JenkinsFile1
Sonal0409 Feb 14, 2022
a941286
Update JenkinsFile1
Sonal0409 Feb 14, 2022
c16bfa4
Update JenkinsFile1
Sonal0409 Feb 16, 2022
a280e30
Update JenkinsFile1
Sonal0409 Feb 20, 2022
1e57ff0
Update Jenkinsfile
Sonal0409 Mar 15, 2022
46ba0da
Update Jenkinsfile
Sonal0409 Mar 26, 2022
009511e
Update JenkinsFile1
Sonal0409 Apr 5, 2022
1c743d2
Update Jenkinsfile
Sonal0409 May 9, 2022
9a83069
Update JenkinsFile1
Sonal0409 May 11, 2022
0e150dc
Update JenkinsFile1
Sonal0409 May 29, 2022
27eb6da
Update JenkinsFile1
Sonal0409 May 31, 2022
a69fa9c
Update JenkinsFile1
Sonal0409 Jun 1, 2022
5ed68be
Update JenkinsFile1
Sonal0409 Jun 7, 2022
ab4ab5c
Update JenkinsFile1
Sonal0409 Jul 19, 2022
49a87de
Update pom.xml
Sonal0409 Dec 17, 2022
381eeeb
Update pom.xml
Sonal0409 Dec 17, 2022
6ec1f2c
Update pom.xml
Sonal0409 Dec 18, 2022
c403417
Update pom.xml
Sonal0409 Dec 18, 2022
3a2ee18
Update pom.xml
Sonal0409 Dec 18, 2022
3a451f3
Update pom.xml
Sonal0409 Dec 18, 2022
481f175
Update pom.xml
Sonal0409 Dec 18, 2022
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
49 changes: 49 additions & 0 deletions JenkinsFile1
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
new commit pipeline{
new chnage for commit tools{
jdk 'myjava'
maven 'mymaven131'
}
//more commits on the file
//commit on github-- new one
agent any
new ctsage added
stages{
stage('Checkout on git'){
agent any
steps{
git 'https://github.com/devops-trainer/DevOpsClassCodes.git'
}
}
stage('Compile'){
agent any
steps{
sh 'mvn compile'
}
}
stage('CodeReview'){
agent any
steps{
sh 'mvn pmd:pmd'
}
}
stage('UnitTest'){
agent {label 'win_slave'}
steps{
git 'https://github.com/devops-trainer/DevOpsClassCodes.git'
bat 'mvn test'
}
}
stage('MetricCheck'){
agent any
steps{
sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml'
}
}
stage('Package'){
agent{label 'win_slave'}
steps{
bat 'mvn package'
}
}
}
}
60 changes: 60 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@

pipeline{
tools{
jdk 'myjava'
maven 'mymaven'
}
agent any
stages{
stage('Checkout'){

steps{
echo 'cloning..'
git 'https://github.com/Sonal0409/DevOpsClassCodes.git'
}
}
stage('Compile'){

steps{
echo 'compiling..'
sh 'mvn compile'
}
}
stage('CodeReview'){

steps{

echo 'codeReview'
sh 'mvn pmd:pmd'
}
}
stage('UnitTest'){

steps{
echo 'Testing'
sh 'mvn test'
}
post {
success {
junit 'target/surefire-reports/*.xml'
}
}
}
stage('MetricCheck'){

steps{
sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml'
}

}
stage('Package'){

steps{

sh 'mvn package'
}
}


}
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Addressbook Tutorial
##Addressbook Tutoriall
====================

This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be
a fast read for learning how to get started - not an example on how application should be
designed. Please note this example uses and requires Java 8 to work.
designed. Please note this example uses and requires Java 8 to work..

![Addressbook Screenshot](addressbook_screenshot.png "Addressbook Screenshot")

Expand Down Expand Up @@ -63,6 +63,6 @@ You should now have a Jetty server running on localhost:8080. Navigate to [http:
To use the built in server adapters of Eclipse, instead of doing "Run As -> Maven Build..." you can do
- Run As -> Run on Server
- Select the server you want to run on, e.g. Apache Tomcat 8 and click ok
- *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this application
- *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this applications

*** End of documentation
*** End of documentation
41 changes: 34 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
<vaadin.version>8.0.0.alpha2</vaadin.version>
<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
</properties>
<!-- JaCoCo Properties -->
<jacoco.version>0.8.6</jacoco.version>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
<sonar.language>java</sonar.language>

</properties>

<repositories>
<repository>
Expand Down Expand Up @@ -153,7 +160,11 @@
<artifactId>xml-security-impl</artifactId>
<version>1.0</version>
</dependency>

<dependency>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.6</version>
</dependency>

</dependencies>

Expand Down Expand Up @@ -301,11 +312,27 @@
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.2.201409121644</version>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
Expand Down