_sd_
This commit is contained in:
parent
b4e0ee381e
commit
03979730e9
|
|
@ -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}
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue