Unknown command error in Jenkins when running Cake script using Powershell

Viewed 1321

Our Jenkins server has been successfully building projects for years using Powershell to run a cake script. Out of the blue today, we started getting the following error on multiple projects:

12:10:46 Running build script...
12:10:46 
12:10:46 Error: Unknown command 'Default'.
12:10:46 
12:10:46        .\scripts\build.cake -target=Default -configuration=Release 
12:10:46 -verbosity=Verbose -environment=dev -certificatePath=C:/Program Files 
12:10:46 (x86)/xxxxx/Verisign Certificate -certificateName=xxxxxxxx_cert.pfx 
12:10:46 -certificatePassword=xxxxxxxxxxx
12:10:46                                     ^^^^^^^ No such command
12:10:46 
12:10:47 Build step 'Windows PowerShell' marked build as failure

The build.ps1 script has not changed. The build.cake script has not changed. Jenkins was not updated since the last successful builds nor any of the add-ins.

If I remove "-target=Default" from the argument list, I just get the same error on "-configuration=Release" indicating unknown command: "Release".

Has anyone else experienced this?

1 Answers
Related