0

I'm trying to compose a version in variables and then use it in name:

enter image description here

But it ends up like:

enter image description here

The reason I want it this way is to reuse version variable later to stamp assembly and tag a branch.

Is that possible at all?

2 Answers 2

1

You can update the pipeline name during the pipeline with a logging command:

- script: echo "##vso[build.updatebuildnumber]'$(version)'"
Sign up to request clarification or add additional context in comments.

2 Comments

That fails with ##[error]TF209010: The build number format 0.1.4" contains invalid character(s), is too long, or ends with '.' None of those statements seems to be true, but it fails ...
@Anthony see my update - add ' ' to $(version) = '$(version)', but you right in your answer, you can just give in name all the variables.
0

I think I found a better way to get a build number in later steps:

enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.