Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
integration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
integration
Commits
90344e14
Commit
90344e14
authored
2 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
Fix download script
parent
17732aef
No related branches found
No related tags found
1 merge request
!68
Master merge
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
download_cmix_binaries.sh
+6
-2
6 additions, 2 deletions
download_cmix_binaries.sh
with
6 additions
and
2 deletions
download_cmix_binaries.sh
+
6
−
2
View file @
90344e14
...
@@ -50,9 +50,9 @@ fi
...
@@ -50,9 +50,9 @@ fi
DEFAULTBRANCH
=
${
DEFAULTBRANCH
:
=
"release"
}
DEFAULTBRANCH
=
${
DEFAULTBRANCH
:
=
"release"
}
if
[[
$USEREPO
==
"d"
]]
;
then
if
[[
$USEREPO
==
"d"
]]
;
then
REPOS_API
=
${
REPOS_API
:
=
"https://git.xx.network/api/v4/projects/elixxir%2F"
}
REPOS_API
=
${
REPOS_API
:
=
"https://git.xx.network/api/v4/projects/elixxir%2F"
}
BRANCH_URL
=
${
BRANCH_URL
:
=
"jobs/artifacts/master/raw/release"
}
BRANCH_URL
=
${
"jobs/artifacts/master/raw/release"
}
echo
"Gitlab Access test:"
echo
"Gitlab Access test:"
curl
-f
-L
-I
-H
"PRIVATE-TOKEN:
$GITLAB_ACCESS_TOKEN
"
"
${
REPOS_API
}
user-discovery-bot/
$BRANCH_URL
/udb
$BIN
"
curl
-f
-L
-I
-H
"PRIVATE-TOKEN:
$GITLAB_ACCESS_TOKEN
"
"
${
REPOS_API
}
user-discovery-bot/
jobs/artifacts/master/raw/release
/udb
$BIN
"
if
[[
$?
!=
0
]]
;
then
if
[[
$?
!=
0
]]
;
then
echo
"Bad GITLAB_ACCESS_TOKEN. You need a https://git.xx.network/-/profile/personal_access_tokens with api and read_repository access."
echo
"Bad GITLAB_ACCESS_TOKEN. You need a https://git.xx.network/-/profile/personal_access_tokens with api and read_repository access."
exit
-1
exit
-1
...
@@ -80,6 +80,10 @@ FBRANCH2=$(echo $FBRANCH | sed 's/feature\///g')
...
@@ -80,6 +80,10 @@ FBRANCH2=$(echo $FBRANCH | sed 's/feature\///g')
echo
"Checking for binaries at
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
..."
echo
"Checking for binaries at
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
..."
echo
"(Note: if you forced a branch, that is checked first!)"
echo
"(Note: if you forced a branch, that is checked first!)"
# Note: The way forced branching works is the user sets, e.g.,
# UDB_URL, then leaves everything else blank. When the first run of
# the loop is called, UDB_URL will download because it does not have
# "forcedbranch" in the URL like all of the others.
for
BRANCH
in
$(
echo
"forcedbranch"
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
)
;
do
for
BRANCH
in
$(
echo
"forcedbranch"
$FBRANCH
$FBRANCH2
$DEFAULTBRANCH
)
;
do
echo
"Attempting downloads from:
$BRANCH
"
echo
"Attempting downloads from:
$BRANCH
"
...
...
This diff is collapsed.
Click to expand it.
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