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

Pipeline script from SCM does not resolve project parameter used in branch specifier

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Won't Fix
    • Component/s: workflow-cps-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.32.3. All plugins up to date.

    • Similar Issues:

      Description

      This issue was marked as fixed in --JENKINS-28447--, however, I am still seeing this issue in 2.32.3 LTS (all plugins updated). The attached screenshots show the issue and the relevant project configuration.

       

       

        Attachments

          Issue Links

            Activity

            Hide
            arickman Alan Rickman added a comment -

            I see the same issue on Jenkins v2.19.4 with latest plugins.

            Downgrading Pipeline: Groovy (workflow-cps) to v2.28 fixes the issue.

            Show
            arickman Alan Rickman added a comment - I see the same issue on Jenkins v2.19.4 with latest plugins. Downgrading Pipeline: Groovy (workflow-cps) to v2.28 fixes the issue.
            Hide
            kerrhome Shannon Kerr added a comment -

            This bug is a killer.  Is there any way to work around it?

            Show
            kerrhome Shannon Kerr added a comment - This bug is a killer.  Is there any way to work around it?
            Hide
            jglick Jesse Glick added a comment -

            Parameter expansion is not supported for lightweight checkouts. Switch to heavyweight checkouts if you need this feature.

            Show
            jglick Jesse Glick added a comment - Parameter expansion is not supported for lightweight checkouts. Switch to heavyweight checkouts if you need this feature.
            Hide
            bkeyser_dgi Brian Keyser added a comment - - edited

            If I understand your suggestion, Jesse, then build parameter substitution should work if "Lightweight checkout" is disabled (not checked).  Unfortunately, disabling lightweight checkout and specifying a parameter for the script path does not work.  More specifically, issue JENKINS-42836, details a situation whether the script path cannot be set using a parameter.

            Show
            bkeyser_dgi Brian Keyser added a comment - - edited If I understand your suggestion, Jesse, then build parameter substitution should work if "Lightweight checkout" is disabled (not checked).  Unfortunately, disabling lightweight checkout and specifying a parameter for the script path does not work.  More specifically, issue  JENKINS-42836 , details a situation whether the script path cannot be set using a parameter.
            Hide
            jglick Jesse Glick added a comment -

            That is a separate issue.

            Show
            jglick Jesse Glick added a comment - That is a separate issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                tman1978 Thomas Mann
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: