APPLICATION_PATH env var is one artifact behind in `before-deploy.ps1`

byron's Avatar

byron

28 Jul, 2015 10:22 PM

I have one server with the deployment agent watching for deployments. That server is currently the home for several services. I have one environment where my builds send their artifacts. These are several artifacts and I have each set up to deploy to the environment. Each artifact deployment has a before-deploy.ps1 and a deploy.ps1. All the deploy.ps1 files work as expected. However, all the before-deploy.ps1 scripts use the APPLICATION_PATH from the previous artifact.

Write-Host "Starting the current adapter..."
& "$Env:APPLICATION_PATH\Project.Accounts.Commands.Host.exe" start

... but $Env:APPLICATION_PATH is not the path of this artifact... it's the path of the artifact that just finished deploying. Thoughts?

  1. Support Staff 1 Posted by Feodor Fitsner on 28 Jul, 2015 10:53 PM

    Feodor Fitsner's Avatar

    Will take a look.

    What kind of application/artifact is that?

  2. 2 Posted by byron on 28 Jul, 2015 10:55 PM

    byron's Avatar

    It's a console app that uses TopShelp to install as a windows service.

  3. Support Staff 3 Posted by Feodor Fitsner on 29 Jul, 2015 12:08 AM

    Feodor Fitsner's Avatar

    The issue has been found and fixed.

    Please re-install Deployment Agent: http://www.appveyor.com/downloads/AppveyorDeploymentAgent.msi

    Let me know about the results.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:58 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