Closed fredericDelaporte closed 1 year ago
I have attempted a debug session. (I do that by making sure the target directory does not exists, which causes the utility to stop on a directory creation prompt, letting me attach to it with "just my code disabled".)
It seems it cannot find any job in GenReleaseStages
function. The _release
member has its Environments
, which have a deploy phase in DeployPhases
, but its PhaseType
is MachineGroupBaseDeployment
which is filtered out by GenJobs
, which seems to process only AgentBaseDeployment
phases.
Tricking the thing by setting each phase type to AgentBaseDeployment
before the filtering seems to work, but I have not yet checked the result is actually usable. (And it is cumbersome to migrate releases with such a hack to do.)
The tool, was still a good help, using this hack. Not production ready, but still valuable. So maybe the PhaseType
filtering should just be relaxed a bit.
Firstly the tool is not designed to be production ready as is stated in the README.
Disclaimer: Do not consider any of the YAML generated by this tool to be 'production ready'. Do your own testing/research and post any issues and/or make a PR!
I have made a PR https://github.com/f2calv/yamlizr/pull/153 that addresses this so there is now a --phasetype argument, i.e. "--phasetype MachineGroupBasedDeployment"
Hello,
Using version 1.0.18, with the following command line on our Azure DevOps repository, we get failures on all our release pipelines, without any detail about what is going wrong.
Commande line:
I only get for each release pipeline an information stating "Processing failed". I would expect to have some more details about what has failed, but I cannot find any.
Commande line output:
OS: Windows 11 Professional
dotnet --version
: 6.0.202 Run from VS Studio 2022 developer PowerShell (VS in admin mode) and directly from a PowerShell cli (admin mode too): same output. Pat freshly created according to https://github.com/f2calv/yamlizr#installationset-up.