Skip to content

Commit 30b5451

Browse files
committed
remove old archigator code
1 parent e413ccd commit 30b5451

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

misc/datahub-hooks.bash

-22
Original file line numberDiff line numberDiff line change
@@ -51,28 +51,6 @@ arc_registry_push() {
5151
echo "ARC registry push returned: $ret"
5252
}
5353

54-
get_publication_link() {
55-
if [ -z "$archigator_url" ] || [ -z "$archigator_user" ] || [ -z "$archigator_password" ]; then
56-
echo "Archigator publication microservice not configured. Skipping..."
57-
return
58-
fi
59-
basic_auth="$( \
60-
echo -n "${archigator_user}:${archigator_password}" | base64
61-
)"
62-
ret="$(curl -k -L -X POST \
63-
-H 'Content-Type: application/json' \
64-
-H "Authorization: Basic ${basic_auth}" \
65-
-d '{"project_id": '$project_id'}' \
66-
"${archigator_url}/api/v1/setup/generatelink"
67-
)"
68-
link_url="$(jq -r '.link // empty' <<< "$ret")"
69-
if [ -z "$link_url" ]; then
70-
echo "Could not retrieve publication link from archigator."
71-
return
72-
fi
73-
echo "$link_url"
74-
}
75-
7654
purge_badges() {
7755
ret="$(curl -k -L -X GET \
7856
-H "PRIVATE-TOKEN: $api_token" \

0 commit comments

Comments
 (0)