Hello,

      I open this issue because I have a weird behavior with string parameter.

      I am unable to pass something like this : var="value test"

      it produce something like this : 'var="value' 'test"'

      But what I want is : var="value test"

      I'm using this string parameters to define extra vars for Ansible that I want to use like that :

       

      ansible-playbook myplay.yml ${extra_options}
      

       
      And it produce :

      + ansible-playbook myplay.yml -e 'var="value' 'test"'
      ...
      ansible-playbook: error: unrecognized arguments: test"
      

      At the end it should produce :

      + ansible-playbook myplay.yml -e var="value test"
      

      How can I solve that ?

      Thank you very much for your help.

      Best regards,

          [JENKINS-63553] String parameters with spaces issue

          Jinwan added a comment -

          If you use build step 'Execute shell', try this script.
          Use bash shell for you command.
          #!/bin/bash
          ansible-playbook myplay.yml ${extra_options}

          Jinwan added a comment - If you use build step 'Execute shell', try this script. Use bash shell for you command. #!/bin/bash ansible-playbook myplay.yml ${extra_options}

            Unassigned Unassigned
            walkn Raphaël COMBEAU
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: