Skip to content

[JENKINS-74794] Fix BuildDataHelper for multi-source jobs #767

@jenkins-infra-bot

Description

@jenkins-infra-bot

We are unable to update the github plugin beyond v1.29.2 (don't judge) due to a logic change in getCommitSHA1 which breaks status reporting for us.
Prior to v1.29.3, when multiple build sources are present, the SHA1 of the first source was returned.
Starting with v1.29.3, the source repo name needs to contain the project name or else no SHA1 will be returned.

I have a fix (I'll happily put up a PR if that's appropriate) which falls back to the old logic (return the SHA1 of the first build source) when the project name doesn't match any of the repos.


Originally reported by oakfellow, imported from: Fix BuildDataHelper for multi-source jobs
  • assignee: lanwen
  • status: Open
  • priority: Minor
  • component(s): github-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-08
Raw content of original issue

We are unable to update the github plugin beyond v1.29.2 (don't judge) due to a logic change in getCommitSHA1 which breaks status reporting for us. Prior to v1.29.3, when multiple build sources are present, the SHA1 of the first source was returned. Starting with v1.29.3, the source repo name needs to contain the project name or else no SHA1 will be returned.

I have a fix (I'll happily put up a PR if that's appropriate) which falls back to the old logic (return the SHA1 of the first build source) when the project name doesn't match any of the repos.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions