From a4b8f4ac3a0a647b54bea1e3540610cc6daaeea1 Mon Sep 17 00:00:00 2001
From: LuoMo <810754420@qq.com>
Date: Mon, 10 Aug 2020 09:49:22 +0800
Subject: [PATCH 1/3] Update Jenkinsfile-online
---
Jenkinsfile-online | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile-online b/Jenkinsfile-online
index dec0cebff..593fd802e 100644
--- a/Jenkinsfile-online
+++ b/Jenkinsfile-online
@@ -14,10 +14,10 @@ pipeline {
GITHUB_CREDENTIAL_ID = 'github-id'
KUBECONFIG_CREDENTIAL_ID = 'demo-kubeconfig'
REGISTRY = 'docker.io'
- DOCKERHUB_NAMESPACE = 'docker_username'
- GITHUB_ACCOUNT = 'kubesphere'
+ DOCKERHUB_NAMESPACE = 'luomo92'
+ GITHUB_ACCOUNT = '810754420@qq.com'
APP_NAME = 'devops-java-sample'
- SONAR_CREDENTIAL_ID = 'sonar-token'
+ SONAR_CREDENTIAL_ID = 'sonar-qube'
}
stages {
From 27e92b6b8c8246454c15b77ccf3be9ea90b10d78 Mon Sep 17 00:00:00 2001
From: LuoMo <810754420@qq.com>
Date: Mon, 10 Aug 2020 09:51:51 +0800
Subject: [PATCH 2/3] Update Jenkinsfile-online
---
Jenkinsfile-online | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Jenkinsfile-online b/Jenkinsfile-online
index 593fd802e..f09a56bec 100644
--- a/Jenkinsfile-online
+++ b/Jenkinsfile-online
@@ -30,7 +30,7 @@ pipeline {
stage ('unit test') {
steps {
container ('maven') {
- sh 'mvn clean -o -gs `pwd`/configuration/settings.xml test'
+ sh 'mvn clean -gs `pwd`/configuration/settings.xml test'
}
}
}
@@ -40,7 +40,7 @@ pipeline {
container ('maven') {
withCredentials([string(credentialsId: "$SONAR_CREDENTIAL_ID", variable: 'SONAR_TOKEN')]) {
withSonarQubeEnv('sonar') {
- sh "mvn sonar:sonar -o -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN"
+ sh "mvn sonar:sonar -gs `pwd`/configuration/settings.xml -Dsonar.branch=$BRANCH_NAME -Dsonar.login=$SONAR_TOKEN"
}
}
timeout(time: 1, unit: 'HOURS') {
@@ -53,7 +53,7 @@ pipeline {
stage ('build & push') {
steps {
container ('maven') {
- sh 'mvn -o -Dmaven.test.skip=true -gs `pwd`/configuration/settings.xml clean package'
+ sh 'mvn -Dmaven.test.skip=true -gs `pwd`/configuration/settings.xml clean package'
sh 'docker build -f Dockerfile-online -t $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER .'
withCredentials([usernamePassword(passwordVariable : 'DOCKER_PASSWORD' ,usernameVariable : 'DOCKER_USERNAME' ,credentialsId : "$DOCKER_CREDENTIAL_ID" ,)]) {
sh 'echo "$DOCKER_PASSWORD" | docker login $REGISTRY -u "$DOCKER_USERNAME" --password-stdin'
From 768e21ab3f3799b01b97a83d02349cf2ca582c43 Mon Sep 17 00:00:00 2001
From: LuoMo <810754420@qq.com>
Date: Mon, 10 Aug 2020 10:35:59 +0800
Subject: [PATCH 3/3] Update pom.xml
---
pom.xml | 26 ++------------------------
1 file changed, 2 insertions(+), 24 deletions(-)
diff --git a/pom.xml b/pom.xml
index 69717e7ec..8b11f440e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,31 +24,9 @@
org.springframework.boot
spring-boot-starter-parent
- 1.4.1.BUILD-SNAPSHOT
+ 2.2.9.RELEASE
-
-
- spring-snapshots
- http://repo.spring.io/snapshot
- true
-
-
- spring-milestones
- http://repo.spring.io/milestone
-
-
-
-
- spring-snapshots
- http://repo.spring.io/snapshot
-
-
- spring-milestones
- http://repo.spring.io/milestone
-
-
-
org.springframework.boot
@@ -106,4 +84,4 @@
-
\ No newline at end of file
+