Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

variable empty valu #32

Closed
damhold opened this issue Apr 17, 2017 · 7 comments
Closed

variable empty valu #32

damhold opened this issue Apr 17, 2017 · 7 comments

Comments

@damhold
Copy link

damhold commented Apr 17, 2017

Hello.
What do i have to do if the variable has to be replaced by an empty value?
I use VSTS and i don't see the tab meesing variable action on the task.

Regards,

Damien

@qetza
Copy link
Owner

qetza commented Apr 19, 2017

Hi Damien,
If you want to replace variables with empty values you have to:

  • Expand the Missing variables group
  • Select silently continue for action
  • Uncheck Keep token

The group should be visible under the standard parameters.

@qetza
Copy link
Owner

qetza commented May 4, 2017

Hi Damien,
Will a custom configurable value to specify empty value would suite your needs? For example configuring that variable value to (empty) would mean to replace the token with an empty value without triggering a warning or an error.

@damhold
Copy link
Author

damhold commented May 4, 2017 via email

@qetza
Copy link
Owner

qetza commented May 11, 2017

Hi Damien,
I just published a new version which exposes a new parameter Empty value which allows to replace tokens with an empty string when the variable value matches this parameter. The default empty value is (empty) and can be changed in the advanced tab.

@damhold
Copy link
Author

damhold commented May 12, 2017 via email

@damhold
Copy link
Author

damhold commented May 15, 2017

Hi.

Your change is working fine.
Thanks for the job.
You can close the issue.

Damien

@damhold damhold closed this as completed May 15, 2017
@Philippe85
Copy link

The two parameters yaml "emptyValue" and "defaultvalue" (and the documentation) are not understandable !
How to use them ! Give us examples !
Why didn't you propose a "allowEmptyValues" parameter more clear and needn't documentation !

So, I want to authorise empty string, but fail task if a variable is not set. How to do in yaml ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants