This commit is contained in:
Artur Kuś 2025-09-04 23:46:33 +02:00
parent b4e0ee381e
commit 03979730e9
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@ pipeline {
dir(project) { dir(project) {
sh """ sh """
git config --global --add safe.directory \$(pwd) git config --global --add safe.directory \$(pwd)
git remote set-url origin https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/gitea/${project}.git git remote set-url origin https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/arti24/${project}.git
git fetch --prune origin git fetch --prune origin
git checkout -B main origin/main git checkout -B main origin/main
""" """
} }
} else { } else {
sh """ sh """
git clone --shallow-since="1 year ago" https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/gitea/${project}.git ${project} git clone --shallow-since="1 year ago" https://${GIT_USER}:${GIT_PASS}@git.arti24.eu/arti24/${project}.git ${project}
""" """
} }
} }