Define version from branch
Hello,
In my appveyor.yml, I'd like to write something like:
version: $(APPVEYOR_REPRO_BRANCH)-{build}
but that doesn't work. I suppose environment is defined after version is computed.
How to do that (if possible) ? I don't want to hardcode the branch name.
It looks like {build} is a key; is the list of keys available ?
Thanks.
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac

1 Posted by Ilya Finkelshte... on 25 Aug, 2017 06:39 PM
Sorry for confusion.
{branch}-{build}should work for you. Will update documentation.2 Posted by Tristan Gingold on 25 Aug, 2017 06:46 PM
Hello,
Thank you for your answer.
I think I have tried that, without success.
Commit is:
https://github.com/tgingold/ghdl/commit/f05f41fee2ad034d2faee3ca95138aedafdae5b7
Appveyor output is:
Error parsing appveyor.yml: (Line: 7, Col: 18, Idx: 252) - (Line: 7,
Col: 26, Idx: 260): While parsing a block mapping, did not find expected
key.
But the error is on {build}, not on {branch}.
Tristan.
3 Posted by Ilya Finkelshte... on 25 Aug, 2017 08:04 PM
Please use single quotes like this:
version: '{branch}-{build}4 Posted by tgingold on 27 Aug, 2017 03:52 AM
Great! That works for me.
(Using '{branch}-{build}' )
Thanks,
Tristan.
----- Mail original -----
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:19 AM.