OP#586 add tagging sync
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -118,8 +118,8 @@ pipeline {
|
|||||||
git rm -f Jenkinsfile
|
git rm -f Jenkinsfile
|
||||||
git commit -m "Remove Jenkinsfile for Gitea mirror" || echo "No changes to commit"
|
git commit -m "Remove Jenkinsfile for Gitea mirror" || echo "No changes to commit"
|
||||||
git remote get-url master >/dev/null 2>&1 \
|
git remote get-url master >/dev/null 2>&1 \
|
||||||
&& git remote set-url master https://sourcecode.confdroid.com/confdroid/confdroid_jenkins.git \
|
&& git remote set-url master https://sourcecode.confdroid.com/confdroid/confdroid_java.git \
|
||||||
|| git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_jenkins.git
|
|| git remote add master https://sourcecode.confdroid.com/confdroid/confdroid_java.git
|
||||||
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
git -c credential.helper="!f() { echo username=${GITEA_USER}; echo password=${GITEA_TOKEN}; }; f" \
|
||||||
push --force master HEAD:refs/heads/master
|
push --force master HEAD:refs/heads/master
|
||||||
git ls-remote --heads master | awk '{print $2}' | sed 's#refs/heads/##' | while read branch; do
|
git ls-remote --heads master | awk '{print $2}' | sed 's#refs/heads/##' | while read branch; do
|
||||||
|
|||||||
Reference in New Issue
Block a user