Hi Everyone,
I am writing to seek your assistance regarding the enforcement of specific stages within our Jenkins pipelines. It is crucial that we make the SonarStage mandatory for all pipelines, as well as ensure that log retention is enforced uniformly across them. Additionally, I would like to implement a policy where the workspace is deleted automatically upon the completion of each pipeline.
We have provided our customers with a default Jenkins file that includes these essential stages; however, it has come to my attention that some users are removing these stages from their configurations. To maintain consistency and quality in our processes, it is imperative that we enforce these requirements across all pipelines.
Could you please provide detailed guidance on how we can achieve this? Specifically, I would appreciate insights on:
-
How to configure Jenkins to make the SonarStage mandatory.
-
Steps required to enforce log retention for all pipelines.
-
Methods to automatically delete workspaces post-pipeline completion.
Your expertise on this matter would be invaluable, and I look forward to your detailed response.
Thank you for your assistance.
Regards,
Venkateswar