Search code examples
jenkinsjenkins-pluginsjenkins-job-dsl

Sonar Quality Gate in Jenkins DSL API


I´m using Jenkins DSL to create my jobs, and I would like to use one of the sonar plugins to check the Quality gate that I configure in Sonar. I´ve been checking in Jenkins DSL API but I cannot find anything.

Anybody knows if there´s an option in Jenkins DSL to add that option in my job?

Regards.


Solution

  • The Job DSL API does not support all plugins. Try to configure the job manually, then port the config to Job DSL. Use a Configure Block to add any config not suppored by the API.