Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
bob
bob.admin
Commits
17e0fa36
Commit
17e0fa36
authored
8 years ago
by
André Anjos
Browse files
Options
Downloads
Patches
Plain Diff
Be a bit more objective when uploading to our dav server
parent
1e8096b3
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gitlab/functions.sh
+1
-8
1 addition, 8 deletions
gitlab/functions.sh
with
1 addition
and
8 deletions
gitlab/functions.sh
+
1
−
8
View file @
17e0fa36
...
...
@@ -94,14 +94,7 @@ doc_upload() {
check_env DOCSERVER
check_pass DOCUSER
check_pass DOCPASS
log_info
"
${
1
}
->
${
DOCSERVER
}
/
${
2
}
, via curl..."
curl
--location
--silent
--show-error
--user
"
${
DOCUSER
}
:
${
DOCPASS
}
"
--upload-file
${
1
}
${
DOCSERVER
}
/
${
2
}
local
status
=
$?
if
[
${
status
}
!=
0
]
;
then
log_error
"Curl command finished with an error condition (status=
${
status
}
)"
exit
${
status
}
fi
log_info
"Successfully uploaded
${
1
}
with curl"
run_cmd curl
--location
--silent
--show-error
--user
"
${
DOCUSER
}
:
${
DOCPASS
}
"
--upload-file
${
1
}
${
DOCSERVER
}
/
${
2
}
}
check_env PYTHON_VERSION
...
...
This diff is collapsed.
Click to expand it.
André Anjos
@aanjos
mentioned in commit
feaac9fe
·
8 years ago
mentioned in commit
feaac9fe
mentioned in commit feaac9fefa57a3009ac46398227ab87d6708dedb
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment