Branch specific version
I would like to use
version: 1.0.{build}-{branch}
in all branches except for master, where I want it to be
version: 1.0.{build}
is this possible?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

Support Staff 1 Posted by Owen McDonnell on 05 Jul, 2018 03:01 PM
Sure. It's documented here
I think something like this should work...
2 Posted by oliver on 06 Jul, 2018 08:31 AM
That is perfect. Thank you Owen.
Just one more thing, as it is related:
does
do_not_increment_build_number: truework with this as well?Support Staff 3 Posted by Owen McDonnell on 06 Jul, 2018 05:43 PM
Yes, that should work.
4 Posted by oliver on 09 Jul, 2018 01:27 PM
I have this config:
I get the following error
and if I comment that out, I get the same error on:
Support Staff 5 Posted by Owen McDonnell on 09 Jul, 2018 04:05 PM
Try putting
do_not_increment_build_number:inside apull_requests:key, like this,6 Posted by oliver on 09 Jul, 2018 04:55 PM
Thank you, Owen - that works. But is not what I am trying to do.
This will only have Pull Request to have a random hash appended to the version, so that the build number is not increased.
I want all commits of all branches to behave like that. With the exception of the master branch - master should increase the build number
7 Posted by Ilya Finkelshte... on 09 Jul, 2018 09:49 PM
We created this workaround for you. It is a kind of hack but should work.
8 Posted by oliver on 10 Jul, 2018 07:34 AM
I really appreciate this, Owen & Ilya.
I will use that.
Is this something AppVeyor would like to support as a feature?
Should I create a github issue asking for this feature (as a non-workaround)?
9 Posted by Ilya Finkelshte... on 10 Jul, 2018 07:58 PM
Sure, feel free to add GitHub issue. However we need to see how many people will vote for it.
Alternative solution by the way: use separate AppVeyor project for
masterand separate for other branches.10 Posted by oliver on 10 Jul, 2018 08:17 PM
oh! I like this better. Thanks!
oliver closed this discussion on 10 Jul, 2018 08:17 PM.
oliver re-opened this discussion on 05 Aug, 2018 08:19 PM
11 Posted by oliver on 05 Aug, 2018 08:26 PM
Hey, Ilya...
This setup didn't quite work out as I hoped.
I would appreciate it, if you could take a look and point out where my mistake is.
location of
appveyor.yml:<projectroot>/Tools/appveyor.ymlconfig in the UI: screenshot: vivaldi_2018-08-05_22-21-29.png
config in the UI for the branches:
AppVeyor project AtlassianPS.Configuration: vivaldi_2018-08-05_22-22-52.png
AppVeyor project AtlassianPS.Configuration@next: vivaldi_2018-08-05_22-23-34.png
and this commit triggered both to run the CI:
* https://ci.appveyor.com/project/AtlassianPS/atlassianps-configurati... * https://ci.appveyor.com/project/AtlassianPS/atlassianps-configurati...
Support Staff 12 Posted by Owen McDonnell on 06 Aug, 2018 04:21 AM
The screenshots you have for different branches UI config are not settings that are shared between UI and yaml file configuration. You can see that list here.
Rather, you should have
orin your config file.
13 Posted by oliver on 06 Aug, 2018 06:44 AM
So I would have to have 2 different
appveyor.ymlfiles with exactly the same content except for thebranches:block?Support Staff 14 Posted by Owen McDonnell on 06 Aug, 2018 04:27 PM
Yes, and each project pointing to a different config file (or let one of the projects use 'default' config file and location).
15 Posted by oliver on 06 Aug, 2018 04:31 PM
great! thanks
oliver closed this discussion on 06 Aug, 2018 04:31 PM.
oliver re-opened this discussion on 06 Aug, 2018 04:31 PM
oliver closed this discussion on 06 Aug, 2018 04:31 PM.