Deploying from Commit That Started a Build

Aaron Jensen's Avatar

Aaron Jensen

21 Jun, 2019 05:57 PM

We use our build process to also do our deployments. When we merge into the master branch, our build knows that this build should be published out to GitHub and the PowerShell Gallery.

However, instead, I'd like to be able to build/deploy on-demand, after a build, when our team determines we that a specific branch/commit is ready to get deployed. Is there a way to run a deployment script out of our repository on the same commit that triggered a build?

  1. Support Staff 1 Posted by Ilya Finkelshte... on 21 Jun, 2019 10:40 PM

    Ilya Finkelshteyn's Avatar

    Hi Aaron,

    For any built-in deployment provider you can use Environment deployment. Difference with Inline deployment (which you do now) is described here. However Environment deployment does not support custom scripts now. If your deployment is based on custom script, you can use a workaround called deployment project. It requires a little bit of scripting, but should not take too long to tune up.

    Let us know if you have any issues with it.

    Ilya.

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