21 lines
823 B
Bash
Executable File
21 lines
823 B
Bash
Executable File
#!/bin/bash
|
|
|
|
curl -u upload:upload -X POST "https://artifacts.psi.ch/artifactory/api/search/aql" -d '
|
|
items.find({
|
|
"repo": "releases",
|
|
"path": {"$match": "ch/psi*"},
|
|
"name": {"$match": "*.rpm"}
|
|
}).include("repo","path","name")
|
|
'> results.json
|
|
|
|
#jq -r '.results[] |
|
|
# (.path | split("/") | .[2]) as $project |
|
|
# "\($project)\thttps://artifacts.psi.ch/artifactory/\(.repo)/\(.path)/\(.name)"' results.json
|
|
|
|
echo "All packages:"
|
|
jq -r '.results[] |
|
|
(.path | split("/") | .[2]) as $project |
|
|
(.path | split("/") | .[3]) as $version |
|
|
"\($project):\($version)\thttps://artifacts.psi.ch/artifactory/\(.repo)/\(.path)/\(.name)"' results.json
|
|
|