diff --git a/Jenkinsfile-online b/Jenkinsfile-online index a6df2ead1..ff4244d27 100644 --- a/Jenkinsfile-online +++ b/Jenkinsfile-online @@ -10,12 +10,12 @@ pipeline { } environment { - DOCKER_CREDENTIAL_ID = 'dockerhub-id' - GITHUB_CREDENTIAL_ID = 'github-id' - KUBECONFIG_CREDENTIAL_ID = 'demo-kubeconfig' + DOCKER_CREDENTIAL_ID = 'layxcn-docker-hub' + GITHUB_CREDENTIAL_ID = 'layxcn-github' + KUBECONFIG_CREDENTIAL_ID = 'cicd-kubeconfig' REGISTRY = 'docker.io' - DOCKERHUB_NAMESPACE = 'docker_username' - GITHUB_ACCOUNT = 'kubesphere' + DOCKERHUB_NAMESPACE = 'layxcn' + GITHUB_ACCOUNT = 'LyonLee' APP_NAME = 'devops-java-sample' } @@ -26,14 +26,6 @@ pipeline { } } - stage ('unit test') { - steps { - container ('maven') { - sh 'mvn clean -o -gs `pwd`/configuration/settings.xml test' - } - } - } - stage ('build & push') { steps { container ('maven') { diff --git a/pom.xml b/pom.xml index 34b527473..6e24b9b1b 100644 --- a/pom.xml +++ b/pom.xml @@ -57,7 +57,7 @@ junit junit - 4.13.1 + test @@ -106,4 +106,4 @@ - \ No newline at end of file +