简体   繁体   English

自动配置Jenkins和Sonarqube

[英]Automate configuration of Jenkins & Sonarqube

I am trying to find a solution to automate installation and configuration of Jenkins & SonarQube. 我正在尝试找到一种解决方案,以自动执行Jenkins&SonarQube的安装和配置。 The idea is to provide an easy to use provisioning utility for setting up CI. 这个想法是提供一个易于使用的配置实用程序来设置CI。 Ideally I would love to automate the following 理想情况下,我希望自动执行以下操作

  1. Installation 安装
  2. Set up users,Build, Unit testing and Code coverage 设置用户,构建,单元测试和代码覆盖率

Is there an SDK, CLI or similar which can be used from batch script? 是否有可以从批处理脚本中使用的SDK,CLI或类似软件?

Thanks 谢谢

You can use the Jenkins docker image for the installation part - even if you're not using Docker you can still copy the installation procedure: 您可以在安装部分使用Jenkins docker映像-即使您不使用Docker,仍然可以复制安装过程:

https://github.com/jenkinsci/docker https://github.com/jenkinsci/docker

For the setup of jobs I would recommend the Job DSL: 对于作业的设置,我建议作业DSL:

https://github.com/jenkinsci/job-dsl-plugin https://github.com/jenkinsci/job-dsl-plugin

For the rest you can use the Jenkins CLI or you can manually configure it once and then extract the corresponding XML file from the Jenkins home and copy it into other installations. 其余的您可以使用Jenkins CLI ,也可以手动配置一次,然后从Jenkins主页提取相应的XML文件并将其复制到其他安装中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM