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

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

    XMLWordPrintable

    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

            tman1978 Thomas Mann created issue -
            tman1978 Thomas Mann made changes -
            Field Original Value New Value
            Priority Minor [ 4 ] Blocker [ 1 ]
            tman1978 Thomas Mann made changes -
            Priority Blocker [ 1 ] Critical [ 2 ]
            tman1978 Thomas Mann made changes -
            Description This issues 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.

            !image-2017-03-22-12-24-34-861.png!

            !image-2017-03-22-12-24-06-284.png!

             

            !image-2017-03-22-12-26-11-981.png!

            !image-2017-03-22-12-28-18-032.png!

             
            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.

            !image-2017-03-22-12-24-34-861.png!

            !image-2017-03-22-12-24-06-284.png!

             

            !image-2017-03-22-12-26-11-981.png!

            !image-2017-03-22-12-28-18-032.png!

             
            tman1978 Thomas Mann made changes -
            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.

            !image-2017-03-22-12-24-34-861.png!

            !image-2017-03-22-12-24-06-284.png!

             

            !image-2017-03-22-12-26-11-981.png!

            !image-2017-03-22-12-28-18-032.png!

             
            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.

            !image-2017-03-22-12-24-34-861.png!

            !image-2017-03-22-12-24-06-284.png|width=878,height=308!

             

            !image-2017-03-22-12-26-11-981.png|width=1088,height=284!

            !image-2017-03-22-12-28-18-032.png|width=774,height=431!

             
            tman1978 Thomas Mann made changes -
            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.

            !image-2017-03-22-12-24-34-861.png!

            !image-2017-03-22-12-24-06-284.png|width=878,height=308!

             

            !image-2017-03-22-12-26-11-981.png|width=1088,height=284!

            !image-2017-03-22-12-28-18-032.png|width=774,height=431!

             
            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.

            !image-2017-03-22-12-24-34-861.png!

            !image-2017-03-22-12-24-06-284.png|width=992,height=348!

             

            !image-2017-03-22-12-26-11-981.png|width=1088,height=284!

            !image-2017-03-22-12-28-18-032.png|width=991,height=552!

             
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-42836 [ JENKINS-42836 ]
            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?
            jglick Jesse Glick made changes -
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-28447 [ JENKINS-28447 ]
            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.
            jglick Jesse Glick made changes -
            Resolution Won't Fix [ 2 ]
            Status Open [ 1 ] Resolved [ 5 ]
            kerrhome Shannon Kerr made changes -
            Comment [ This also affected variables being used in email-ext-plugin generated email messages.  My emails were wrecked.  Here is a snippet from the top of one:

            {noformat}

            ${PROJECT_NAME}
              ${PROPFILE,file="config.sh",property="VerStr"} for branch
             ${ENV,var="SVN_BRANCH"} ${BUILD_STATUS}

                                                                          ^

            java.lang.NullPointerException
             MIME-Version: 1.0
             Content-Type: multipart/mixed; 
             boundary="----=_Part_1_1780705128.1491498183440"
             X-Jenkins-Job: VSaaS Agent vagent
             X-Jenkins-Result: FAILURE

            ------=_Part_1_1780705128.1491498183440
             Content-Type: text/html; charset=UTF-8
             Content-Transfer-Encoding: 7bit

            <pre style='font-family:Verdana;'>

            {noformat} ]
            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 Unassigned
              Reporter:
              tman1978 Thomas Mann
              Votes:
              3 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: