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

Promoted Builds plugin should pass actual/"root" job to Git plublisher

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: promoted-builds-plugin
    • Labels:
      None
    • Environment:
      CentOS 5.8 SunJDK 1.7.0_03-b04 and Fedora 15 OpenJDK 1.6.0_22 both on x86-64.
      Both Jenkins 1.462.
      Both Git Plugin 1.1.18
      Both Promoted Builds Plugin 2.5
    • Similar Issues:

      Description

      The Promoted Builds plugin should pass the actual job instance to the Git Publisher perform() when performing post-promote action.

      I wondered why publishing Git tags did not work as post promote action and debugged the code a bit.

      The promotion will fail with

      Promoting JOBNAME #13
      failed build hudson.plugins.git.GitPublisher@7cdd86df SUCCESS
      Finished: FAILURE

      In the class GitPublisher I see build.getProject() returns a project instance pointing to the build and promote. the getScm() then will of course return a NullSCM. I think getProject() should return the base/actual job so that the Git publisher wil refer to the correct project.

      A Git Publisher setup as post build action works quiet fine.

        Attachments

          Issue Links

            Activity

            tholewebgods Thomas Lehmann created issue -
            drazzib drazzib made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-12659 [ JENKINS-12659 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-32006 [ JENKINS-32006 ]
            oleg_nenashev Oleg Nenashev made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 144218 ] JNJira + In-Review [ 186058 ]
            janitza_thbe Thomas Bender made changes -
            Link This issue is duplicated by JENKINS-38578 [ JENKINS-38578 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              tholewebgods Thomas Lehmann
              Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

                Dates

                Created:
                Updated: