OP#188 remove Jenksinfile from public mirror
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -110,10 +110,9 @@ pipeline {
|
||||
git pull origin master
|
||||
git branch -D development
|
||||
git branch -D jenkins-build-$BUILD_NUMBER
|
||||
git filter-repo --path Jenkinsfile --invert-paths
|
||||
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" \
|
||||
push master --mirror
|
||||
push master - $(git subtree split --prefix=:/^Jenkinsfile --invert-paths --rejoin origin/main):refs/heads/main -mirror
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user