Skip to content
Snippets Groups Projects
Commit b13d0b7a authored by Don Kjer's avatar Don Kjer
Browse files

Adding stub for private artifacts

parent 9a7c6a4c
No related branches found
No related tags found
No related merge requests found
...@@ -312,6 +312,7 @@ then ...@@ -312,6 +312,7 @@ then
if $build_viewer_deb && [ "$last_built_variant" == "Release" ] if $build_viewer_deb && [ "$last_built_variant" == "Release" ]
then then
begin_section "Build Viewer Debian Package" begin_section "Build Viewer Debian Package"
local have_private_repo=false
# mangle the changelog # mangle the changelog
dch --force-bad-version \ dch --force-bad-version \
--distribution unstable \ --distribution unstable \
...@@ -346,6 +347,7 @@ then ...@@ -346,6 +347,7 @@ then
done done
for deb_file in `/bin/ls ../packages_private/*.deb 2>/dev/null`; do for deb_file in `/bin/ls ../packages_private/*.deb 2>/dev/null`; do
upload_item debian_private $deb_file binary/octet-stream upload_item debian_private $deb_file binary/octet-stream
have_private_repo=true
done done
create_deb_repo create_deb_repo
...@@ -357,6 +359,14 @@ then ...@@ -357,6 +359,14 @@ then
mv $build_log_dir/$debian_repo_type $build_log_dir/${debian_repo_type}_pushed mv $build_log_dir/$debian_repo_type $build_log_dir/${debian_repo_type}_pushed
fi fi
done done
if [ $have_private_repo = true ]; then
eval "$python_command \"$redirect\" '\${private_S3PROXY_URL}${S3PREFIX}repo/$repo/rev/$revision/index.html'"\
>"$build_log_dir/private.html" || fatal generating redirect
upload_item global_redirect "$build_log_dir/private.html" text/html
fi
end_section "Upload Debian Repository" end_section "Upload Debian Repository"
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment