cake-build/cake-vso

Errors when using Cake Step from the Release Management

mabreuortega opened this issue ยท 1 comments

What You Are Seeing?

The step execution is failing during the Cake.ps1 tools resolution

What is Expected?

To download all the requirement and run, just like when used for the Builds.

What version of Cake are you using?

v0.3.0

Are you running on a 32 or 64 bit system?

64 bits

What environment are you running on? Hosted? Custom?

Hosted

How Did You Get This To Happen? (Steps to Reproduce)

  • Create a Release definition
  • Link the Release to an existing Artifact (my artifact has spaces in it, and I can smell that this is directly related to the issue, something is not properly quoted)
  • Add a Cake step to execute a .cake script inside the spaced artifact name:
    $(System.DefaultWorkingDirectory)/Artifact - Spaced/LPAMSWeb/scripts/deploy.cake
  • Deploy

Output Log

2017-05-24T15:23:33.6736279Z Installing Cake...
2017-05-24T15:23:33.6906296Z ##[error]The term 'C:\tfs-agent_work\bc7a36e29\Artifact' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
2017-05-24T15:23:33.6986304Z ##[error]Could not find Cake.exe at C:\tfs-agent_work\bc7a36e29\Artifact - Spaced\LPAMSWeb\scripts\tools\Cake\Cake.exe
2017-05-24T15:23:33.7196325Z Finishing task: Cake
2017-05-24T15:23:33.7206326Z ##[error]Task Cake failed. This caused the job to fail. Look at the logs for the task for more details.

๐ŸŽ‰ This issue has been resolved in version 0.4.0 ๐ŸŽ‰

The release is available on:

Your GitReleaseManager bot ๐Ÿ“ฆ๐Ÿš€