Add scripts/shell/job/artifactory-search-ETICS-packages.sh file

This commit is contained in:
Matheus Albino Brunhara
2024-08-13 16:30:40 -03:00
parent de0c2e6b57
commit 1af37d4082
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
packages=($(jf rt search --recursive=false --include-dirs=true "oss-package-dev/gp/*" | jq -r .[].path))
for package in ${packages[@]}; do
package_ver=${package#"oss-package-dev/gp/"}
[[ $package_ver != *"-ETICS-"* ]] && continue
echo $package_ver
done