Skip to content

Commit

Permalink
Use task id when calling "koji taskinfo"
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Srb <michal@redhat.com>
  • Loading branch information
msrb committed May 27, 2024
1 parent cd45e39 commit 779299b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpminspect_runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ else
fi
fi

repo_ref=$("${koji_bin}" taskinfo -v "${after_build_param}" | grep "Source: " | awk '{ print $2 }' | sed 's|^git+||')
repo_ref=$("${koji_bin}" taskinfo -v "${task_id}" | grep "Source: " | awk '{ print $2 }' | sed 's|^git+||')
repo_url=$(echo "${repo_ref}" | awk -F'#' '{ print $1 }' | awk -F'?' '{ print $1 }')
commit_ref=$(echo "${repo_ref}" | awk -F'#' '{ print $2 }' | awk -F'?' '{ print $1 }')

Expand Down

0 comments on commit 779299b

Please sign in to comment.