Which build configuration does a tag triggered build choose?
My appveyor.yml file defines multiple build configurations. It looks something like this:
*****************
- #Build settings for Release
branches:
only:
- Release
...
- #Build settings for Release Candidate branches
branches:
only:
- /^.+_Release_Candidate$/
********************
When I add an annotated tag to my repo, it triggers an appveyor build, and it looks like it's choosing one of my non-release branches build configurations. The build log outputs the APPVEYOR_BUILD_VERSION environment variable, and the tag name is listed as the branch name. So it's not clear to me how appveyor chooses the branch configuration it uses when it performs a build triggered by a tag push. Could someone explain how this works?
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 02 Nov, 2018 09:49 PM
You can find an explanation for this behaviour here in the docs.
A quote from that section...
2 Posted by Bobby on 03 Nov, 2018 04:14 PM
Hi Owen,
I had already read the docs, and I do not believe they answer my question, but please let me know if I'm mistaken. I don't have anything related to tags in my current appveyor.yml, so it's unclear to me how appveyor chooses which build configuration to use when performing a tag triggered build.
Best,
Bobby
3 Posted by Bobby on 03 Nov, 2018 04:16 PM
To be more specific,the docs say:
"there is no practical reliable way to recognize what branch the tag was created from"
so how does appveyor choose a build configuration to use?
Support Staff 4 Posted by Owen McDonnell on 06 Nov, 2018 05:45 AM
I believe it will build the last commit of the branch from which the tag was pushed. Although there will not be a way to choose which configuration to choose so the default (fallback) will be chosen.
Ilya Finkelshteyn closed this discussion on 06 Jan, 2019 09:00 PM.