Setting APPVEYOR_REPO_TAG_NAME manually when there is no tags on pr builds.

seandhunt_7's Avatar

seandhunt_7

02 Jun, 2018 12:41 AM

So basically I am deploying to a separate repository, that repository I want releases to be the name obtained from the version of the actual appveyor build set from the first line of my appveyor.yml file. But on a tag do not change it. However it seems to make releases named "$(APPVEYOR_REPO_TAG_NAME)" instead for some odd reason. I do not want to monkey patch it to match the tag name, I want to push a tag and then it pushes the tag with the same name as I pushed to this separate repository and then increment the first line of my appveyor.yml to 1.4.9.9a{build} on the next commit after the release tag.

link to build:
https://ci.appveyor.com/project/AraHaan/els-kom-new/build/1.4.9.8a298

link to my appveyor.yml: https://github.com/Elskom/Els_kom_new/blob/kom-rework/appveyor.yml

  1. 1 Posted by seandhunt_7 on 02 Jun, 2018 06:00 PM

    seandhunt_7's Avatar

    It seems I needed to replace the $env:version when I am setting the tag name manually to $env:APPVEYOR_BUILD_VERSION.

  2. seandhunt_7 closed this discussion on 03 Jun, 2018 12:55 AM.

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