Setting the version (via the API) doesn't update the environment variable

As part of my build process I calculate and set the version number via a post to the build agent API.

This works in terms of setting the version number shown in the history but it doesn't appear to update the environment variable meaning I have to get slightly creative to pass the value to a later step in the process (I need a playground to see how all this stuff interacts!)

  1. Good catch, will add that to issues! Thanks.

  2. Still doesn't assuming my incantation to create an artifact is right:

    artifacts:
      - path: publish
        name: appveyor.$(APPVEYOR_VERSION_NUMBER)
    
  3. As a workaround you can just set this variable in the same place where you call Build API, kind of:

    $env:APPVEYOR_VERSION_NUMBER = 'version'
    
  4. Yay, I see you have this working right now

  5. James Murphy closed this discussion on 27 Nov, 2014 09:38 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

Recent Discussions