Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
0c76047
new changes
Feb 3, 2020
7100864
new change
Feb 3, 2020
050c718
Create Jenkinsfile
kserge2001 Apr 19, 2020
0ce893d
Update Jenkinsfile
kserge2001 Apr 19, 2020
2588383
Update Jenkinsfile
kserge2001 Apr 19, 2020
ec39df9
Update Jenkinsfile
kserge2001 Apr 19, 2020
3440414
Update Dockerfile
kserge2001 Jul 17, 2020
987593f
docker
Jul 20, 2020
7c6fe6c
Update TestGreeter.java
kserge2001 Jul 20, 2020
08b9e33
jdnjfjf
kserge2001 Jul 20, 2020
783171a
Merge branch 'master' of https://github.com/kserge2001/code2
kserge2001 Jul 20, 2020
ab93be4
Update README.md
kserge2001 Jul 20, 2020
5d8393b
jfjdhfdh
kserge2001 Jul 20, 2020
7c2a7f8
dhfhgh
kserge2001 Jul 20, 2020
3337a46
Update pom.xml
kserge2001 Jul 21, 2020
712abee
Update pom.xml
kserge2001 Jul 21, 2020
598feee
Update pom.xml
kserge2001 Jul 28, 2020
ded7ac6
Update pom.xml
kserge2001 Jul 28, 2020
a5339b1
Update pom.xml
kserge2001 Jul 28, 2020
dc7a31f
Update pom.xml
deugouegithub2020 Feb 27, 2021
3980340
Update pom.xml
deugouegithub2020 Feb 27, 2021
cf903b5
Update pom.xml
deugouegithub2020 Mar 1, 2021
cc0d9ab
Update index.jsp
deugouegithub2020 Mar 1, 2021
40729c0
change index.jsp
deugouegithub2020 Mar 1, 2021
b1170b1
index.jsp has changed.
deugouegithub2020 Mar 1, 2021
6254009
Update pom.xml
deugouegithub2020 Mar 1, 2021
93e340c
Update pom.xml
deugouegithub2020 Mar 1, 2021
12ff333
Update pom.xml
deugouegithub2020 Mar 1, 2021
41d3d88
Update pom.xml
deugouegithub2020 Mar 1, 2021
83b5f80
Update pom.xml
deugouegithub2020 Mar 1, 2021
c6bb5f3
Update pom.xml
deugouegithub2020 Mar 1, 2021
c5e160e
Update pom.xml
deugouegithub2020 Mar 1, 2021
6c59a41
Update pom.xml
deugouegithub2020 Mar 1, 2021
91b694b
Update pom.xml
deugouegithub2020 Mar 1, 2021
c2ca351
Update pom.xml
deugouegithub2020 Mar 1, 2021
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
Expand Up @@ -3,4 +3,4 @@ From tomcat:8-jre8

# Maintainer
MAINTAINER "kserge2001@yahoo.fr"
COPY ./webapp.war /usr/local/tomcat/webapps
COPY ./webapp/target/webapp.war /usr/local/tomcat/webapps
72 changes: 72 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
pipeline {
agent any
triggers {
cron('H */1 * * * ')
}
tools {
maven 'M2_HOME'

}
stages {
stage('Build'){
steps {
echo "Build step"
sh 'mvn clean'
sh 'mvn install'
sh 'mvn package'
}


}
stage('sonaqube analys'){
steps{
withSonarQubeEnv('sonar') {
sh 'mvn sonar:sonar'
}
}
}
stage("Quality Gate") {
steps {
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: true
}
}
}
stage('test '){
steps {
retry(4){
echo "test step"
}
sh 'mvn test'
}


}
stage('deploy'){
steps {

sshPublisher(publishers: [sshPublisherDesc(configName: 'Docker-host', transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: 'docker rmi pcontact:v.${BUILD_NUMBER}; docker build -t pcontact:v.${BUILD_NUMBER} .; docker tag pcontact:v.${BUILD_NUMBER} kserge2001/pcontact:v.${BUILD_NUMBER}; docker push kserge2001/pcontact:v.${BUILD_NUMBER};', execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '', remoteDirectorySDF: false, removePrefix: 'webapp/target', sourceFiles: '**/*.war')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])

}


}

}
post {
always {
echo "Always display this message "
}
failure {
echo "Job failed "
}
success {
echo "Successful run "
}
unstable {
echo "The job is unstable "
}
}

}
echo "Jenkinsfile"
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# maven-project

Simple Maven Project
Simple Maven Project conflict

This is the release branch created by Me Serge
6 changes: 1 addition & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,13 @@
<url>file:///tmp/maven-project-site</url>
</site>
</distributionManagement>

<build>
<plugins>
<plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-release-plugin</artifactId>
<configuration>
Expand Down
1 change: 1 addition & 0 deletions server/src/test/java/com/example/TestGreeter.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ public void greetShouldIncludeGreetingPhrase() {
assertThat(greeter.greet(someone).length(), is(greaterThan(someone.length())));
}
}
echo "good job"
7 changes: 3 additions & 4 deletions webapp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
<h1> Hello, Welcome to Simple DevOps Project Serge !! </h1>
<h2> Data Service Group is your learning partner </h2>
<h2> Glad to see you here </h2>
<h1> Good job Serge on learning Devops</h1>
<h1> Hello, Welcome to Simple DevOps Project done by Serges Deugoue. !! </h1>
<h2> Deploying a war file to a Tomcat Server. </h2>