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

Unable to use variable tokens as build property values in Create Package in Declarative Script

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Jenkins 2.138.2
      BM plugin 2.0.2

      I have job in declarative script and in the create package I need to pass some variables and values but I cannot use Token variables here or at least I have been unable to find a way to use them.

      I've tried property=${varname}  ,  property =$varname  , property = "${varname}" and property = varname  but the values are just never replaced with the values of the variables.

      I also tried setting them to new variables within the script block and then using the above options and again it never replaces them.

      I can use tokens in the Release Number , app id, deployable id just fine but I cannot as buildvariables.  

      These are dynamic values so they cannot be hard coded.

      If there is already a way to do this you might want to note it in the docs. 

            andrewsumner Andrew Sumner
            jstarbird Jon Starbird
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: