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

Provide easy access to git branch name in multibranch workflow scripts

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Popular maven plugins designed to give you access to the git branch name are ineffective when using the workflow Multibranch Plugin.

      For multbranch builds it's reasonable to expect use cases where the branch info is use to augment artifact names and manifest entries so people can easily distinguish branch built artifacts from one.

      Would be nice if the DSL just made this state available - but populating the env would be a nice start.

        Attachments

          Issue Links

            Activity

            rpomeroy Ronald Pomeroy created issue -
            rpomeroy Ronald Pomeroy made changes -
            Field Original Value New Value
            Comment [ I tried to log out the env.JOB_NAME

            with echo " *** ${env.JOB_NAME} *** "

            and got
            ...
            Running: Print Message
            *** ${env.JOB_NAME} ***
            ... ]
            jglick Jesse Glick made changes -
            Labels multibranch
            jglick Jesse Glick made changes -
            Remote Link This issue links to "Stack Overflow (Web Link)" [ 13165 ]
            jglick Jesse Glick made changes -
            Link This issue is blocking JENKINS-30744 [ JENKINS-30744 ]
            jglick Jesse Glick made changes -
            Link This issue is related to JENKINS-24141 [ JENKINS-24141 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Component/s branch-api-plugin [ 18621 ]
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Labels multibranch
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 12 (Web Link)" [ 13403 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            larsmeynberg Lars Meynberg made changes -
            Link This issue is related to JENKINS-32244 [ JENKINS-32244 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 165345 ] JNJira + In-Review [ 197691 ]
            thesnoozer S L made changes -
            Link This issue is related to JENKINS-47226 [ JENKINS-47226 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                rpomeroy Ronald Pomeroy
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: