[Bug]: Gradle check job fails to publish metrics when pr_number
is null.
#4708
Labels
bug
Something isn't working
pr_number
is null.
#4708
Describe the bug
Coming from a failed gradle check job https://build.ci.opensearch.org/job/gradle-check/38585/console with error
No such property: pr_number for class: groovy.lang.Binding
, this error occurs because the job was triggered byparameterizedCron
, this could even happen when the job was involved manually.To reproduce
Rebuilding the job https://build.ci.opensearch.org/job/gradle-check/38585/console should throw the same error again
Expected behavior
The
publishGradleCheckTestResults.groovy
that publishes the metrics should get proper inputs ofpr_number
. For this, the gradle check job should handle when triggered by PR use thepr_number
, by User or by Timer then fallback toGIT_REFERENCE
. The librarypublishGradleCheckTestResults
should also be publish the metrics with new fieldinvoke_type
where the metrics can be filtered properly byUser
,Timer
,Post Merge Action
andPull Request
.Screenshots
If applicable, add screenshots to help explain your problem.
Host / Environment
No response
Additional context
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: