• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • workflow-cps-plugin
    • Jenins 1.613, Workflow plugin 1.6
      Also: Jenkins 1.651.1, workflow-job 2.3

      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.

          [JENKINS-28447] CpsScmFlowDefinition does not resolve variables

          Nicholas Newland created issue -
          Jesse Glick made changes -
          Summary Original: Workflow plugin does not resolve variables in SCM plugin New: CpsScmFlowDefinition does not resolve variables
          Andrew Bayer made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-30910 [ JENKINS-30910 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-34126 [ JENKINS-34126 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-33719 [ JENKINS-33719 ]
          Patrick Wolf made changes -
          Labels New: followup
          Christian Höltje made changes -
          Environment Original: Jenins 1.613, Workflow plugin 1.6 New: Jenins 1.613, Workflow plugin 1.6
          Also: Jenkins 1.651.1, workflow-job 2.3
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 163287 ] New: JNJira + In-Review [ 181164 ]
          Gareth Western made changes -
          Link New: This issue is duplicated by JENKINS-34876 [ JENKINS-34876 ]
          Gareth Western made changes -
          Link New: This issue is duplicated by JENKINS-34540 [ JENKINS-34540 ]

            jglick Jesse Glick
            nsnewland Nicholas Newland
            Votes:
            50 Vote for this issue
            Watchers:
            68 Start watching this issue

              Created:
              Updated:
              Resolved: