0

We are using VSO/VSTS' host build pool with the new vNext build platform. But suddenly, as of today, all of our builds have started breaking. This happens during the execution of a powershell script.

Error:

. 'C:\a\1\s\scripts\LocalPublish.ps1' --packOutput C:\a\1\a\MyProject --projectName "MyProject.Api" --buildConfiguration Release

Executing the following powershell script. (workingFolder = C:\a\1\s)

C:\a\1\s\scripts\LocalPublish.ps1 --packOutput C:\a\1\a\MyProject --projectName "MyProject.Api" --buildConfiguration Release

Microsoft .NET Development Utility Clr-x86-1.0.0-rc1-16231

[error]Error: The given path's format is not supported.

[error]Process completed with exit code 1 and had 1 error(s) written to the error stream.

Powershell script arguments:

--packOutput $(build.stagingDirectory)\MyProject --projectName "MyProject.Api" --buildConfiguration $(BuildConfiguration)

Can anyone explain why this has started happening?

Community
  • 1
  • 1
Dave New
  • 38,496
  • 59
  • 215
  • 394
  • I'm getting the same problem. I'll add a post for the VSTS/VSO forums and hopefully someone will answer there. – Phil Martin Dec 17 '15 at 22:43
  • Actually I'm wrong - its not the same error, just a similar one. This is the one I am getting: https://stackoverflow.com/questions/34100740/error-copying-typescript-files-when-packaging-azure-project-visual-studio-2015 Except it is on the VSO/VSTS's build pool – Phil Martin Dec 17 '15 at 22:55
  • I've added a post to the Visual Studio Online forum https://social.msdn.microsoft.com/Forums/vstudio/en-US/a631ca36-611e-4cdc-9fb1-421e6e9afb56/new-build-errors-when-building-web-role?forum=TFService – Phil Martin Dec 17 '15 at 23:02
  • @PhilMartin: Check my answer. I also replied to your MSDN post. – Dave New Dec 18 '15 at 06:25

1 Answers1

1

It seems that a backwards incompatible change was introduced. From how I understand it, passing in parameters can now only be done using a single dash '-' and not a double dash '--'.

Build works when arguments are as follows:

-packOutput $(build.stagingDirectory)\MyProject -projectName "MyProject.Api" -buildConfiguration $(BuildConfiguration)

Dave New
  • 38,496
  • 59
  • 215
  • 394