Skip to content

Commit

Permalink
Add check for build state of packages to be tested
Browse files Browse the repository at this point in the history
  • Loading branch information
baierjan committed Jan 16, 2025
1 parent 36e5d3e commit abd2509
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions trigger-openqa_in_openqa
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ create_devel_openqa_snapshot() {
elif [[ -e job_post_skip_submission ]]; then
rm job_post_skip_submission
fi
echo "Checking if all relevant packages are build and published"
for package in $auto_submit_packages; do
local state
state=$($osc results -r openSUSE_Tumbleweed -a x86_64 --no-multibuild "$src_project" "$package")
if grep -q -v 'succeeded\|disabled' <<<"$state"; then
echo -e "Package $package is not yet ready for release\n$state" | tee job_post_skip_submission
return
fi
done
echo "Creating snapshots under $staging_project"
for package in $auto_submit_packages; do
echo "Creating snapshots of $package"
Expand Down

0 comments on commit abd2509

Please sign in to comment.