jenkins

Export/import jobs in Jenkins


Is it possible to exchange jobs between 2 different Jenkins'? I'm searching for a way to export/import jobs.


Solution

  • Jenkins has a rather good wiki, albeit hard to read when you're new to CI software...

    They offer a simple solution for moving jobs between servers

    The trick probably was the need to reload config from the Jenkins Configuration Page.

    Update 2020.03.10

    The JenkinsCI landscape has changed a lot... I've been using Job DSL for a while now. We have a SEED Job that generates the rest of the jobs.

    This helps us both recreate or move for the Jenkins server whenever needed :) You could also version those files for even more maintainability!