$configuration from powershel script block not being parsed

terrencebenade's Avatar


04 Mar, 2015 01:09 PM

Probably something dumb but hoping someone can help. I cannot get the reference to $configuration below to work I have tried


I am no expert on Powershell interpolation so any help...thanks

configuration: Release

  - ps: Import-Module .\tools\psake.psm1

  - ps: Invoke-psake .\default.ps1 Compile -parameters @{}

  - ps: Push-AppveyorArtifact src\myproject\obj\$configuration\Package\myproject.zip
  1. Support Staff 1 Posted by Feodor Fitsner on 04 Mar, 2015 05:44 PM

    Feodor Fitsner's Avatar

    Should be:

      - ps: Push-AppveyorArtifact "src\myproject\obj\$env:configuration\Package\myproject.zip"

    1 - double quotes to interpolate string and 2 - $env: to access environment variable.

  2. 2 Posted by terrencebenade on 04 Mar, 2015 08:59 PM

    terrencebenade's Avatar

    Firstly, Feodor world class service as usual thank you. Apologies for the daft essentially powershell question.

    I took my lead from http://www.appveyor.com/docs/packaging-artifacts which states




    will give you artifacts I assumed the access method was the same. Might be an opportunity to tweak the documentation or the way my brain is wired up, either will suffice ;)

  3. Support Staff 3 Posted by Feodor Fitsner on 04 Mar, 2015 09:02 PM

    Feodor Fitsner's Avatar

    Ah, that style is MSBuild-like one.

  4. terrencebenade closed this discussion on 04 Mar, 2015 09:48 PM.

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