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

Can't pass empty string parameter to azure cli

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • azure-cli-plugin
    • None
    • Jenkins core: 2.73.2
      plugin version: 0.5

      I can't pass empty variables when using the plugin.

      I want to define empty string for the filed: --public-ip-address.

      for example: --public-ip-address "" 

      I tried to escape with all the possible combinations with no success. 

      --public-ip-address '"'

      --public-ip-address """"

      '--public-ip-address ""'

      etc...

      The same command run as expected when using regular bash shell script and not the plugin pipeline or regular Jenkins job.

      command for example: az vm create -g "foo" –name "bar" --public-ip-address "" 

       

       Thanks for your help! 

       

            torosent Tomer Rosenthal
            shai_azulay Shai Azulay
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: