$(appveyor_build_version) not getting resolved

jswiatek's Avatar

jswiatek

15 Jul, 2019 01:16 PM

Got this appvayor.yml file:

version: '1.0.{build}'
image: Ubuntu1804
stack: node 10
branches:
  only:
   - master
build_script:
 - sh: npm install
after_build:
 - sh: 7z a drachtio-mobile-gw-source.zip "./*.js" "*.json" "./node_modules"
artifacts:
 - path: drachtio-mobile-gw-source.zip
   name: site-content
   type: Zip
clone_depth: 1
test_script:
on_finish:
  # any cleanup in here
deploy:
  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

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