Skip to content

Commit

Permalink
Merge pull request #4261 from joepvd/update-assembly-urls
Browse files Browse the repository at this point in the history
improve assembly-urls
  • Loading branch information
joepvd authored Oct 11, 2024
2 parents 0e9c8f8 + 08de8c4 commit a25a9c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hacks/triage/assembly-urls
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ parse_args() {
done

if [[ -z "$branch" && -n "$assembly" ]]; then
branch="$(awk -F'[.]' '$1 ~ /^[0-9]+$/ && $2 ~ /^[0-9]+$/ && $3 ~ /^[0-9]+(-(rc|fc).[0-9]+)?$/ && NF == 3 {printf("openshift-%s.%s", $1, $2); next} {exit(1)}' <<<"$assembly")"
branch="$(awk -F'[.]' '$1 ~ /^[0-9]+$/ && $2 ~ /^[0-9]+$/ && $3 ~ /^[0-9]+(-(rc|fc|ec).[0-9]+)?$/ && NF == 3 {printf("openshift-%s.%s", $1, $2); next} {exit(1)}' <<<"$assembly")"
[[ -z "$branch" ]] && {
echo "Could not parse valid looking branch">/dev/stderr
exit 1
Expand Down Expand Up @@ -79,10 +79,10 @@ build_urls() {
[
.releases
| to_entries[]
| [ select(.key | test("^([0-9]+[.][0-9]+[.][0-9]+|(rc|fc)[.][0-9]+)$")) ] | .[0]
| [ select(.key | test("^([0-9]+[.][0-9]+[.][0-9]+|(rc|fc|ec)[.][0-9]+)$")) ] | .[0]
][$index | tonumber]
| .value.assembly.group
| [ ( .advisories
| [ ( ( to_entries[] | select(.key | contains("advisories")) .value )
| to_entries[]
| @text "\($errata)/\(.value)"
),
Expand All @@ -98,7 +98,7 @@ build_urls() {
| to_entries[]
| select(.key == $assembly)
| .value.assembly.group
| [ ( .advisories
| [ ( ( to_entries[] | select(.key | contains("advisories")) .value )
| to_entries[]
| @text "\($errata)/\(.value)"
),
Expand Down
2 changes: 2 additions & 0 deletions hacks/triage/install
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ versions=(
"4.15"
"4.16"
"4.17"
"4.18"
"4.19"
)

assembly_types=(
Expand Down

0 comments on commit a25a9c9

Please sign in to comment.