Skip to content

Template parameter value containing comma ',' adds space after it #255

@CaffreyYA

Description

@CaffreyYA

Hi, I have a pipeline that uses TriggerBuild@4 to trigger another pipeline, and I have it to send something like
templateParameters: 'Foo:$Var'

And in some cases, $Var would contain comma, so it could be Foo:"A,B", but then on the receiver pipeline side, it gets "A, B" as the value of Foo parameter, instead of "A,B". And in our case, "A,B" and "A, B" are treated differently, so this is not working well because from the receiver side, it only gets "A, B" and it doesn't know if the original value contains the space or not.

I found this post from years back: #54 and it looks like

BuildConfiguration: chk,ret,BuildPlatform: x86,amd64,FileSpecification: CompilerAndLibraries

becomes

BuildConfiguration: chk, ret
BuildPlatform: x86, amd64
FileSpecification: CompilerAndLibraries

is what introduced space whenever seeing a comma. I'm wondering if it could remove the space, if the original value does not contain it? So it becomes:

BuildConfiguration: chk,ret
BuildPlatform: x86,amd64
FileSpecification: CompilerAndLibraries

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions