Skip to content

Commit 5ceeb8a

Browse files
author
soulseen
committed
use ipv4 by default
Signed-off-by: soulseen <[email protected]>
1 parent 64b4fc4 commit 5ceeb8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Jenkinsfile-on-prem

+1-1
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

+1-1
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)