Azure Dev Ops - Error: Unknown command 'Publish' #3174
-
What You Are Seeing?We have a number of .Net based projects that use a Cake build in AZure Dev Ops pipelines. The process is failing during the project build phase with the following error:
Azure Pipelines YML:
Full logs here: This has just started happening with no codebase changes to the projects. Build.cake files have not changed and azure-pipelines.yml files have not changed. I raised a ticket with Microsoft but as Cake is a thrd party, they directed me here. I have gone through the configuration files and cannot see any changes that have been made to cause this so would really appreciate some help and insight in have to uncover what is wrong. What is Expected?Normal operation is the cake build works fine and that the resulting artifacts are published which then triggers the Relase pipeline to run. What version of Cake are you using?From the logs, it looks like Cake version is 0.4.4 although there is a installation form nuget of cake1.0.0 Are you running on a CI Server? If so, which one?The cake process is running within Azure Dev Ops How Did You Get This To Happen? (Steps to Reproduce)Any project project that is using cake is expereincing this issue. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@cstanleyhns It looks like you never fixed/pinned your Cake version and have been living on the edge for a very long time (~2015 if version 0.4.x is correct 😅), and because of that your build processes have always been using the latest version of Cake available at the time your builds run - and you've been lucky enough that it didn't break sooner! 🍀 We released Cake v1.0 a couple of weeks ago, which includes a number of new features and also breaking changes, which seems to be what's affecting you. Your options at this point would be: (1) Follow the instructions on the Reproducible Builds section and pin the Cake version to version or (2) Migrate your builds to Cake v1.0 making the necessary changes to your bootstrappers and possibly updating addins/modules that you use to newer versions compatible with Cake v1.0. Regardless of which way you go, make sure you pin the Cake version version of Cake moving forward so that when we release Cake Other posts that might be useful (similar to yours): |
Beta Was this translation helpful? Give feedback.
@cstanleyhns It looks like you never fixed/pinned your Cake version and have been living on the edge for a very long time (~2015 if version 0.4.x is correct 😅), and because of that your build processes have always been using the latest version of Cake available at the time your builds run - and you've been lucky enough that it didn't break sooner! 🍀
We released Cake v1.0 a couple of weeks ago, which includes a number of new features and also breaking changes, which seems to be what's affecting you.
Your options at this point would be:
(1) Follow the instructions on the Reproducible Builds section and pin the Cake version to version
0.38.5
, the release prior to1.0.0
which you would have b…