3
0

OP#188 remove Jenksinfile from public mirror

This commit is contained in:
2025-12-03 16:03:36 +01:00
parent c1e40ea302
commit d4a81ae31f

4
Jenkinsfile vendored
View File

@@ -110,9 +110,11 @@ pipeline {
git pull origin master git pull origin master
git branch -D development git branch -D development
git branch -D jenkins-build-$BUILD_NUMBER git branch -D jenkins-build-$BUILD_NUMBER
git rm -f Jenkinsfile
git commit --amend --no-edit --allow-empty
git remote add master https://gitea.confdroid.com/confdroid/prometheus_cd.git git remote add master https://gitea.confdroid.com/confdroid/prometheus_cd.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 master $(git subtree split --prefix=:/^Jenkinsfile --invert-paths --rejoin origin/main):refs/heads/main --mirror push master --mirror
''' '''
} }
} }