Ability to Map Quality Gates to One or More Branches

Looking for options to apply Quality Gates to specific branches. It appears that this feature might be available, how do we implement for this structure:

$master
/prd - ProdQualityGate
/tst - TestQualityGate
/dev - DevQualityGate

Best Regards,
BK

Hi BK,

This is an interesting use case, but not one we support. Would you mind sharing how those Quality Gates differ?

 
Ann

Hey Ann,

Yeah, so our automation platform deploys based on branch. In some branches, we may not want a branch to halt deployment to enable us to manage certain process like helping us to test and work through controls and risk limiting options. As it is, I cannot find a way to have tiered Quality Gates for different branches.

Does this make sense?

Hi,

Thanks for getting back to me & sorry for the delay in responding.

I understand wanting to take different actions in different situations, but I’m not understanding wanting to apply different criteria. Wouldn’t this just be a question of failing - or not - the pipeline for a failing Quality Gate?

 
Ann

1 Like

Hi,

your question is similar to this posting

And i think the recommendation of @OlivierK is reasonable.
Another somewhat ‘quirky’ approach would be to wrap the Sonarqube analysis in try / catch
for special pipelines, i.e. the Jenkins pipeline step waitForQualityGate() continuing the pipeline
even if quality gate fails. That way you’ll get all issues if any but your pipeline goes on.

Gilbert

1 Like

So, based on the input here, we’ll leave the quality gates as they are and set failures as warnings in the pipeline with notifications/alerts. That way there surprises up the chain. Thanks all!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.