Skip to content
Snippets Groups Projects
Commit d9d6404f authored by Marcel Nellesen's avatar Marcel Nellesen
Browse files

Reduced displayed error messages (coscine/issues#854)

parent 57191db8
No related branches found
No related tags found
No related merge requests found
......@@ -6,20 +6,22 @@ $gitlab_token = & $fullPath kv get "coscine/global/gitlabtoken"
Push-Location $PSScriptRoot
$organizationsPath = 'organizations'
# Twice remove, because of: https://stackoverflow.com/questions/7909167/how-to-quietly-remove-a-directory-with-content-in-powershell#comment10316056_7909195
If(Test-Path $organizationsPath) { Remove-Item -LiteralPath $organizationsPath -Force -Recurse }
If(Test-Path $organizationsPath) { Remove-Item -LiteralPath $organizationsPath -Force -Recurse }
git clone https://gitlab-ci-token:$gitlab_token@git.rwth-aachen.de/coscine/organizations.git
cd organizations
$pagebranch = & $fullPath kv get 'coscine/local/organizationdeployer/branch'
if (!$pagebranch) {
$pagebranch = 'master';
if ($pagebranch -And $pagebranch -ne 'master' ) {
git checkout $pagebranch
git pull
}
git checkout $pagebranch
git pull
cd ..
$path = '/voc'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment