Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
docker_images
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
CIRDAN
docker_images
Commits
4188503d
Commit
4188503d
authored
5 days ago
by
Johannes von Zmuda-Trzebiatowski
Browse files
Options
Downloads
Patches
Plain Diff
Do not fail if no release present for a project
parent
1be19a60
No related branches found
Branches containing commit
Tags
0.9
Tags containing commit
No related merge requests found
Pipeline
#399836
passed
5 days ago
Stage: image
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
debian_repository/download_releases.sh
+1
-1
1 addition, 1 deletion
debian_repository/download_releases.sh
with
1 addition
and
1 deletion
debian_repository/download_releases.sh
+
1
−
1
View file @
4188503d
...
...
@@ -16,7 +16,7 @@ set -e
response
=
$(
curl
--header
"JOB-TOKEN:
${
CI_JOB_TOKEN
}
"
--silent
"https://
$GITLAB_URL
/api/v4/projects/
$1
/releases"
)
# Check if the response is an array (valid JSON structure for releases)
if
echo
"
$response
"
|
tr
'\n'
' '
| jq
-e
'type == "array"
and length > 0
'
>
/dev/null
;
then
if
echo
"
$response
"
|
tr
'\n'
' '
| jq
-e
'type == "array"'
>
/dev/null
;
then
echo
"Downloading assets for
$1
"
echo
"
$response
"
|
tr
'\n'
' '
| jq
-r
'.[].assets.links[] | "\(.name),\(.url)"'
|
while
IFS
=
','
read
-r
name url
;
do
echo
"Downloading
$name
from
$url
"
...
...
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