Skip to content

Commit 9095fc4

Browse files
committed
modify ns & package off
1 parent e40ce74 commit 9095fc4

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Jenkinsfile-online

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pipeline {
3030
stage ('unit test') {
3131
steps {
3232
container ('maven') {
33-
sh 'mvn test'
33+
sh 'mvn clean -o -gs `pwd`/configuration/settings.xml test'
3434
}
3535
}
3636
}
@@ -51,7 +51,7 @@ pipeline {
5151
stage ('build & push') {
5252
steps {
5353
container ('maven') {
54-
sh 'mvn -Dmaven.test.skip=true clean package'
54+
sh 'mvn -o -Dmaven.test.skip=true -gs `pwd`/configuration/settings.xml clean package'
5555
sh 'docker build -f Dockerfile-online -t $REDISTRY/$NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER .'
5656
withCredentials([usernamePassword(passwordVariable : 'DOCKER_PASSWORD' ,usernameVariable : 'DOCKER_USERNAME' ,credentialsId : "$DOCKER_CREDENTIAL_ID" ,)]) {
5757
sh 'echo "$DOCKER_PASSWORD" | docker login $REDISTRY -u "$DOCKER_USERNAME" --password-stdin'

deploy/dev/devops-sample-svc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app: kubesphere
66
component: ks-sample-dev
77
name: ks-sample-dev
8-
namespace: kubesphere-dev
8+
namespace: kubesphere-sample-dev
99
spec:
1010
ports:
1111
- name: http

deploy/dev/devops-sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
component: ks-sample-dev
77
tier: backend
88
name: ks-sample-dev
9-
namespace: kubesphere-dev
9+
namespace: kubesphere-sample-dev
1010
spec:
1111
progressDeadlineSeconds: 600
1212
replicas: 1

deploy/prod/devops-sample-svc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app: kubesphere
66
component: ks-sample
77
name: ks-sample
8-
namespace: kubesphere-prod
8+
namespace: kubesphere-sample-prod
99
spec:
1010
ports:
1111
- name: http

deploy/prod/devops-sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
component: ks-sample
77
tier: backend
88
name: ks-sample
9-
namespace: kubesphere-prod
9+
namespace: kubesphere-sample-prod
1010
spec:
1111
progressDeadlineSeconds: 600
1212
replicas: 2

0 commit comments

Comments
 (0)