Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53707

Allow commit message and author of head commit

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      2.2.14

      Description

      Expose commit message and author for head commit, this allows implementation of traits based on commit (inside the plugin or as extension in other plugins).

      The scenario to cover is when in the pipeline there are git commit (for example during release) and push that triggers multiple build.
      In my scenario are three builds:

      • one for the push of new version
      • one for the push of tag (JENKINS-51063)
      • one for the push of next development version

      We would prevent trigger new build job if commit was performed by a specific user (jenkins user) or contains a particular message (for example start with [maven-release-plugin]).

      Author is retrieved but are not exposed to by the BitbucketCommit interface, the message is not correctly handled so it's always null.

      After that we could add a CommitFilter(out)Traits that can exclude branches that matches some rules based on author name <email> (typical representation of commit author in git) or message.

        Attachments

          Issue Links

            Activity

            Hide
            nfalco Nikolas Falco added a comment -

            Work in progress here

            Show
            nfalco Nikolas Falco added a comment - Work in progress here
            Show
            nfalco Nikolas Falco added a comment - Proposed PR here https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/145

              People

              • Assignee:
                amuniz Antonio Muñiz
                Reporter:
                nfalco Nikolas Falco
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: