jenkinsci / jenkinsci/parameterized-trigger-plugin

[JENKINS-63553] String parameters with spaces issue

Open
#782 1 comment 0 reactions 0 assignees View on GitHub
component:parameterized-trigger-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
77
Forks
174
Avg merge
22h 27m
Merged PRs (30d)
1

Description

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,

---
Originally reported by walkn, imported from: String parameters with spaces issue


  • status: Open
  • priority: Critical
  • component(s): parameterized-trigger-plugin
  • label(s): StringParameter
  • resolution: Unresolved
  • votes: 1
  • watchers: 2
  • imported: 2025-12-07

Raw content of original issue

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,

  • environment: Jenkins ver. 2.222.3

1 attachment

- [image-2020-08-28-17-07-30-266.png](https://issues.jenkins.io/secure/attachment/52470/image-2020-08-28-17-07-30-266.png)
> ![image-2020-08-28-17-07-30-266.png](https://issues.jenkins.io/secure/attachment/52470/image-2020-08-28-17-07-30-266.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.