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

CpsScmFlowDefinition does not resolve variables

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: workflow-cps-plugin
    • Labels:
    • Environment:
      Jenins 1.613, Workflow plugin 1.6
      Also: Jenkins 1.651.1, workflow-job 2.3
    • Similar Issues:

      Description

      When selecting the "Groovy CPS DSL from SCM" option for a worflow job, the SCM plugins do not appear to resolve build parameters or environment variables. I am using the git plugin and when I use it from other jobs I can specify a build parameter, like "BuildBranch", and use that when specifying what branch should be built:

      Branches to build: */${BuildBranch}

      This does not work when I use the Groovy CPS DSL from SCM.

        Attachments

          Issue Links

            Activity

            nsnewland Nicholas Newland created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Summary Workflow plugin does not resolve variables in SCM plugin CpsScmFlowDefinition does not resolve variables
            abayer Andrew Bayer made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            jglick Jesse Glick made changes -
            Link This issue depends on JENKINS-30910 [ JENKINS-30910 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-34126 [ JENKINS-34126 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-33719 [ JENKINS-33719 ]
            hrmpw Patrick Wolf made changes -
            Labels followup
            docwhat Christian Höltje made changes -
            Environment Jenins 1.613, Workflow plugin 1.6 Jenins 1.613, Workflow plugin 1.6
            Also: Jenkins 1.651.1, workflow-job 2.3
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163287 ] JNJira + In-Review [ 181164 ]
            gareth_western Gareth Western made changes -
            Link This issue is duplicated by JENKINS-34876 [ JENKINS-34876 ]
            gareth_western Gareth Western made changes -
            Link This issue is duplicated by JENKINS-34540 [ JENKINS-34540 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]
            jglick Jesse Glick made changes -
            Component/s workflow-cps-plugin [ 21713 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            jglick Jesse Glick made changes -
            Remote Link This issue links to "PR 60 (Web Link)" [ 14844 ]
            jglick Jesse Glick made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            jglick Jesse Glick made changes -
            Status In Review [ 10005 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            ddaumiller Dorian Daumiller made changes -
            Comment [ Could it be that changing this introduced JENKINS-38734?
            I have these versions of pipeline related Plugins:
            Pipeline 2.4
            Pipeline Graph Analysis Plugin 1.2
            Pipeline: API 2.6
            Pipeline: Basic Steps 2.3
            Pipeline: Build Step 2.3
            Pipeline: Groovy 2.23
            Pipeline: Input Step 2.5
            Pipeline: Job 2.8
            Pipeline: Milestone Step 1.1
            Pipeline: Multibranch 2.9.2
            Pipeline: Nodes and Processes 2.5
            Pipeline: REST API Plugin 2.2
            Pipeline: SCM Step 2.2
            Pipeline: Shared Groovy Libraries 2.4
            Pipeline: Stage Step 2.2
            Pipeline: Stage View Plugin 2.2
            Pipeline: Step API 2.5
            Pipeline: Supporting APIs 2.10 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-42971 [ JENKINS-42971 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-43040 [ JENKINS-43040 ]
            atikhono Anna Tikhonova made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jglick Jesse Glick made changes -
            Status Reopened [ 4 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-42836 [ JENKINS-42836 ]
            cloudbees CloudBees Inc. made changes -
            Remote Link This issue links to "CloudBees Internal OSS-770 (Web Link)" [ 18832 ]
            pyrocks Mor L made changes -
            Link This issue is related to JENKINS-48431 [ JENKINS-48431 ]

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                nsnewland Nicholas Newland
              • Votes:
                50 Vote for this issue
                Watchers:
                65 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: