I would like to be able to configure centrally something like "build profiles" which I can apply to multiple projects in Jenkins.

For instance, I want to setup a compile, email, deploy chain to be used by several projects. When I change something in this chain, I want to automatically apply the changes to all linked projects.

Is there a convenient way to do this? I am also open to suggestions for other build systems, as long as they can deal with sbt projects.

有帮助吗?

解决方案

I see there is a SBT plugin for Jenkins which looks popular-I haven't used it

I have used the jenkins job-dsl which covers sbt out the box. This works by a build step in a job to create/regenerate other jobs (with an optional template)

The problem with having a generic job building separate projects is that all the job history gets merged together. I think it is better to use stand-alone jobs for each task and the job-dsl will allow you to do that

其他提示

TeamCity supports build configuration templates out of the box and recently added basic sbt support.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top