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

Environment variables for build session not available for use in plugin text fields.

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cloudfoundry-plugin
    • None
    • Windows or Linux server

      When using the plugin Environment variables are not seed correctly using the standard token syntax for Jenkins provided by the token-macro plugin. This is a show stopper for our projects as we need to pass org and space information dynamically using parameters to jobs.

      For a parameter "space" The error is:

      Cloud Foundry Plugin:
      java.lang.IllegalArgumentException: No matching organization and space found for org: my-organization space: ${space}
      

          [JENKINS-31208] Environment variables for build session not available for use in plugin text fields.

          Jason Barrios created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166394 ] New: JNJira + In-Review [ 182385 ]

          I have the same problem: I try to use string parameters to pass dynamically the organization and space but they are not passed.
          The error is:
          Cloud Foundry Plugin:
          java.lang.IllegalArgumentException: No matching organization and space found for org: my-organization space: ${space}

          The ${space} is not managed.

          It's really a big issue for automatization and parametrized deployment.

          Romain Schlick added a comment - I have the same problem: I try to use string parameters to pass dynamically the organization and space but they are not passed. The error is: Cloud Foundry Plugin: java.lang.IllegalArgumentException: No matching organization and space found for org: my-organization space: ${space} The ${space} is not managed. It's really a big issue for automatization and parametrized deployment.
          Romain Schlick made changes -
          Description Original: When using the plugin Environment variables are not seed correctly using the standard token syntax for Jenkins provided by the token-macro plugin. This is a show stopper for our projects as we need to pass org and space information dynamically using parameters to jobs. New: When using the plugin Environment variables are not seed correctly using the standard token syntax for Jenkins provided by the token-macro plugin. This is a show stopper for our projects as we need to pass org and space information dynamically using parameters to jobs.

          The error is:

          {code:java}
          Cloud Foundry Plugin:
          java.lang.IllegalArgumentException: No matching organization and space found for org: my-organization space: $
          {space}
          {code}
          Romain Schlick made changes -
          Description Original: When using the plugin Environment variables are not seed correctly using the standard token syntax for Jenkins provided by the token-macro plugin. This is a show stopper for our projects as we need to pass org and space information dynamically using parameters to jobs.

          The error is:

          {code:java}
          Cloud Foundry Plugin:
          java.lang.IllegalArgumentException: No matching organization and space found for org: my-organization space: $
          {space}
          {code}
          New: When using the plugin Environment variables are not seed correctly using the standard token syntax for Jenkins provided by the token-macro plugin. This is a show stopper for our projects as we need to pass org and space information dynamically using parameters to jobs.

          For a parameter "space" The error is:

          {code:java}
          Cloud Foundry Plugin:
          java.lang.IllegalArgumentException: No matching organization and space found for org: my-organization space: ${space}
          {code}
          Olivier Lamy made changes -
          Remote Link New: This issue links to "Page (Jenkins Wiki)" [ 17281 ]

          Steven Swor added a comment -

          jasonbarrios and/or rschlick - Can you check if this is still an issue in the 2.x version of the plugin? My guess is it's still an issue but I want to confirm.

          Steven Swor added a comment - jasonbarrios and/or rschlick - Can you check if this is still an issue in the 2.x version of the plugin? My guess is it's still an issue but I want to confirm.

          Haluk Ozen added a comment - - edited

          Hi sworisbreathing we are currently on 2.2.0 version and problem still seems like continue, 

          do you have any plans for the fix. ?

          Regards

          Haluk Ozen added a comment - - edited Hi sworisbreathing we are currently on 2.2.0 version and problem still seems like continue,  do you have any plans for the fix. ? Regards

          Yusuf Chang added a comment - - edited

          Has same problem with version 2.2.0, try to use parameterized string to pass dynamically org and space.

          Cloud Foundry Plugin:
          java.lang.IllegalArgumentException: Organization $org does not exist
          	at org.cloudfoundry.util.ExceptionUtils.illegalArgument(ExceptionUtils.java:45)

          Any plan for the fix?

          Best Regards,
          Yusuf 

          Yusuf Chang added a comment - - edited Has same problem with version 2.2.0, try to use parameterized string to pass dynamically org and space. Cloud Foundry Plugin: java.lang.IllegalArgumentException: Organization $org does not exist at org.cloudfoundry.util.ExceptionUtils.illegalArgument(ExceptionUtils.java:45) Any plan for the fix? Best Regards, Yusuf 
          Steven Swor made changes -
          Assignee Original: William Gautier [ williamg ] New: Steven Swor [ sworisbreathing ]

            sworisbreathing Steven Swor
            jasonbarrios Jason Barrios
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: