How to decide which psake task to execute
Hello,
I have setup a build using psake as the build scripting engine.
Currently, I execute the build using:
build.bat PackageSolution
Where PackageSolution is the default task that I want to execute.
I would like to create another psake task called DeploySolution, where I then do the work of deploying the generated artifacts to where I need them to go. In order to do that, I need to know if the build is being executed as the result of a checkin to the master branch, develop branch, or whether the build is running as the result of a Pull Request.
Is there a way that I can determine that within the install commands section of my appveyor.yml file?
I realise that AppVeyor has the concept of Deployment Steps that I could utilise to do this work, but I want to be able to control everything from psake, and just use AppVeyor to orchestrate the build.
Thanks
Gary
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
Support Staff 1 Posted by Feodor Fitsner on 20 Sep, 2014 04:45 PM
Hi Gary,
There are environment variables (http://www.appveyor.com/docs/environment-variables) with branch name and pull request number. You can use them in build script.
-Feodor
2 Posted by gep13 on 20 Sep, 2014 06:33 PM
That sounds like exactly what I need! Thanks!
Gary
3 Posted by gep13 on 20 Sep, 2014 07:32 PM
Just had a play with this, and looks like I can get exactly what I need.
Thanks
Gary
gep13 closed this discussion on 20 Sep, 2014 07:32 PM.