Running script on environment after deploy

Björn Fredberg's Avatar

Björn Fredberg

13 Mar, 2019 06:24 AM

Hi,

Is there a way to add a runCommand to a yaml file instead of adding it in the appveyor environment?
I'm looking for a way to run a command after deploy on each specific environment instead common for the build process.

I have tried adding a powershell script in the after_deploy section, and it runs successfully, but it doesn't run on the specific environment but as part of the build process. I can call the command by adding it to the environment After deployment command but I'm trying to avoid putting configuration in the environment settings and instead using more maintable yaml files.

/Björn

  1. Support Staff 1 Posted by Owen McDonnell on 13 Mar, 2019 05:50 PM

    Owen McDonnell's Avatar

    I am assuming you are using deployment agent?

    Apart from running .ps1 scripts before/after deployment as detailed here there is no way to run environment specific commands from yaml configuration.

    Sorry if i've misunderstood your question.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

26 Mar, 2019 06:34 AM
26 Mar, 2019 06:27 AM
25 Mar, 2019 09:12 PM
25 Mar, 2019 06:34 PM
25 Mar, 2019 06:20 AM

 

24 Mar, 2019 06:52 PM
24 Mar, 2019 05:26 PM
24 Mar, 2019 03:07 AM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM