How to manage maven settings.xml on a shared jenkins server?

后端 未结 6 583
时光取名叫无心
时光取名叫无心 2020-12-01 18:43

I have a Jenkins cluster that is shared by several teams, that I can configure build jobs on, However i can\'t easily make changes to the Jenkins configuration itself.

6条回答
  •  粉色の甜心
    2020-12-01 19:13

    A good way to automate the provisioning of maven executors with specific configuration, is using ElasticBox Jenkins plugin.

    You only need to create a box for the Maven slave, that define all the customization variables and files to be used by it and choose your preferred cloud provider for deploying it.

    ElasticBox gives you also the flexibility to create new slaves only when needed and automatically destroy them after an specified retention time.

    Here is how-to connect your Jenkins with ElasticBox:

    https://elasticbox.com/documentation/integrate-with-jenkins/jenkins-elasticbox-setup/#jenkins-configure-plugin

    Here is how to automate creation of Jenkins slaves with ElasticBox:

    https://elasticbox.com/documentation/integrate-with-jenkins/jenkins-elasticbox-slaves/

    There is a blog post about how easily build and deploy from GitHub pull requests with ElasticBox Jenkins plugin:

    https://elasticbox.com/blog/github-pull-requests-jenkinsplugin/

提交回复
热议问题