diff --git a/Jenkinsfile-online b/Jenkinsfile-online index 67c8a7f2..6a32f1b4 100644 --- a/Jenkinsfile-online +++ b/Jenkinsfile-online @@ -14,8 +14,8 @@ pipeline { GITHUB_CREDENTIAL_ID = 'github-id' KUBECONFIG_CREDENTIAL_ID = 'demo-kubeconfig' REGISTRY = 'docker.io' - DOCKERHUB_NAMESPACE = 'docker_username' - GITHUB_ACCOUNT = 'kubesphere' + DOCKERHUB_NAMESPACE = 'zmm623' + GITHUB_ACCOUNT = 'zmm623' APP_NAME = 'devops-java-sample' SONAR_CREDENTIAL_ID= 'sonar-token' } @@ -94,8 +94,8 @@ pipeline { container ('maven') { input(id: 'release-image-with-tag', message: 'release image with tag?') withCredentials([usernamePassword(credentialsId: "$GITHUB_CREDENTIAL_ID", passwordVariable: 'GIT_PASSWORD', usernameVariable: 'GIT_USERNAME')]) { - sh 'git config --global user.email "kubesphere@yunify.com" ' - sh 'git config --global user.name "kubesphere" ' + sh 'git config --global user.email "zmm623@163.com" ' + sh 'git config --global user.name "zmm623" ' sh 'git tag -a $TAG_NAME -m "$TAG_NAME" ' sh 'git push http://$GIT_USERNAME:$GIT_PASSWORD@github.com/$GITHUB_ACCOUNT/devops-java-sample.git --tags --ipv4' } @@ -107,7 +107,7 @@ pipeline { stage('deploy to production') { when{ expression{ - return params.TAG_NAME =~ /v.*/ + return params.TAG_NAME =~ /v.*/ } } steps {