This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Not A Defect
    • Priority: Major
    • Environment:
      Jenkins 2.72 installed via Windows installer on Windows Server 2012
      Pipeline running on linux node: Linux 3.10.0-514.21.2.el7.x86_64
      pipeline-input-step 2.6

      When using the choice parameter, the selection is not being output to the appropriate environment variable. Here is the code I am using:
       

      def environmentChoices = ['blue', 'green'].join('\n') 
      def stagingEnvironmentInpit = input( message: "apistaging.evolution-software.com is currently pointed to ${currentEnvironment}. Where do you want to promote to?", ok: 'Deploy', parameters: [choice(choices: environmentChoices, name: 'RELEASE_ENVIRONMENT')] ) 
       echo env.RELEASE_ENVIRONMENT

       RELEASE_ENVIRONMENT will remain null.

            Assignee:
            Unassigned
            Reporter:
            Gustav Lasko
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: