$(appveyor_build_version) not getting resolved

jswiatek's Avatar


15 Jul, 2019 01:16 PM

Got this appvayor.yml file:

version: '1.0.{build}'
image: Ubuntu1804
stack: node 10
   - master
 - sh: npm install
 - sh: 7z a drachtio-mobile-gw-source.zip "./*.js" "*.json" "./node_modules"
 - path: drachtio-mobile-gw-source.zip
   name: site-content
   type: Zip
clone_depth: 1
  # any cleanup in here
  provider: S3
  access_key_id: <redacted>
  secret_access_key: <redacted>
  bucket: <redacted>
  region: us-east-1
  unzip: false
  set_public: false
  folder: drachtio-mobile-gw/$(appveyor_build_version)
  artifact: site-content

However, the $(appveyor_build_version) is not resolved in the folder part of the deploy section. Instead it just gets uploaded in a folder named "drachtio-mobile-gw/$(appveyor_build_version)" on s3.

This works on a stack that's based on windows on one of our dotnet code projects.

  1. Support Staff 1 Posted by Owen McDonnell on 15 Jul, 2019 05:27 PM

    Owen McDonnell's Avatar

    Have you tried capitalizing the environment variable name, i.e. APPVEYOR_BUILD_VERSION?

  2. 2 Posted by jswiatek on 16 Jul, 2019 07:46 AM

    jswiatek's Avatar

    That did the trick. So they're case sensitive when running on a Linux-stack. Fair game!

  3. jswiatek closed this discussion on 16 Jul, 2019 07:46 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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