Skip to content

Commit 355f9d9

Browse files
author
Zhuxiaoyang
authored
Merge pull request kubesphere#7 from soulseen/ipv4
use ipv4 by default
2 parents 64b4fc4 + 5ceeb8a commit 355f9d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Jenkinsfile-on-prem

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pipeline {
9797
sh 'git config --global user.email "[email protected]" '
9898
sh 'git config --global user.name "kubesphere" '
9999
sh 'git tag -a $TAG_NAME -m "$TAG_NAME" '
100-
sh 'git push http://$GIT_USERNAME:[email protected]:30080/$GITLAB_ACCOUNT/devops-java-sample.git --tags'
100+
sh 'git push http://$GIT_USERNAME:[email protected]:30080/$GITLAB_ACCOUNT/devops-java-sample.git --tags --ipv4'
101101
}
102102
sh 'docker tag $REGISTRY/$HARBOR_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER $REGISTRY/$HARBOR_NAMESPACE/$APP_NAME:$TAG_NAME '
103103
sh 'docker push $REGISTRY/$HARBOR_NAMESPACE/$APP_NAME:$TAG_NAME '

Jenkinsfile-online

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ pipeline {
9797
sh 'git config --global user.email "[email protected]" '
9898
sh 'git config --global user.name "kubesphere" '
9999
sh 'git tag -a $TAG_NAME -m "$TAG_NAME" '
100-
sh 'git push http://$GIT_USERNAME:[email protected]/$GITHUB_ACCOUNT/devops-java-sample.git --tags'
100+
sh 'git push http://$GIT_USERNAME:[email protected]/$GITHUB_ACCOUNT/devops-java-sample.git --tags --ipv4'
101101
}
102102
sh 'docker tag $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:SNAPSHOT-$BRANCH_NAME-$BUILD_NUMBER $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$TAG_NAME '
103103
sh 'docker push $REGISTRY/$DOCKERHUB_NAMESPACE/$APP_NAME:$TAG_NAME '

0 commit comments

Comments
 (0)