Making CI and tag builds distinct

roger's Avatar

roger

19 May, 2015 08:24 AM

Hello,

I'd like to make the builds (and artifacts) that are part of the regular CI flow very obviously distinct from releases, but can't see how best to proceed. Can anybody help? The kind of thing I want to do is have my normal builds use a version like

version: testing-1.2.0.{build}

And then when a tag is pushed to use the exact tag name as the version number, so effectively

version: %APPVEYOR_REPO_TAG_NAME%

Is this possible?

Thanks,

Roger

  1. 1 Posted by roger on 19 May, 2015 04:09 PM

    roger's Avatar

    I've now figured out one way of doing this. I've added this line to the build_script section:

    - cmd: if "%APPVEYOR_REPO_TAG%" == "true" set APPVEYOR_BUILD_VERSION=%APPVEYOR_REPO_TAG_NAME%

  2. roger closed this discussion on 19 May, 2015 04:33 PM.

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