I would like to migrate a Client Master from CloudBees Jenkins Platform ("CJP") or CloudBees Core for traditional platforms ("Core traditional") to CloudBees Core for modern cloud platforms ("Core modern"), refactoring a single CLoudBees Core Client Master ("CM") into multiple CloudBees Core Managed Masters ("MM").
I would like teams to be able to self-service migrate jobs from CM to MM using the move/copy/promote functionality.
This scenario resembles the use case mentioned in the CloudBees Migration Guide under Case A, Option B.
- An existing installation of Core traditional, AKA the source, with a CM that you wish to migrate
- An existing installation of Core modern, AKA the target, with one or many MMs
to receive migrated jobs from the source CM
- The target cluster must be reachable from the source CM over the JNLP port
- For more information on allowing JNLP traffic through the Kubernetes ingress controller, see the this article
- For an example YAML configuration for JNLP traffic, see here
- Extract the RBAC configuration file
$JENKINS_HOME/nectar-rbac.xmlfrom the source CloudBees Jenkins Operations Center ("CJOC") and save a copy to your local workspace. - Copy this configuration file to the target CJOC
- Use a
kubectl cpcommand to copy thenectar-rbac.xmlthat you downloaded from your local workspace into theJENKINS_HOMEdirectory of the target CJOC:
kubectl cp nectar-rbac.xml cjoc-0:/var/jenkins_home/nectar-rbac.xml
- Use a
- Restart the target CJOC
- Enable RBAC authorization strategy on target CJOC
- Ensure that “Retain any existing role-based matrix authorization strategy configuration” is selected
- Disconnect the source CM from the source CJOC.
- Connect the source CM to the target CJOC.
- From the target CJOC, push connection information to the source CM
- For more information on adding a CM to Core modern, see this guide
- Ensure RBAC works on the migrated CM
- Ensure each target MM has the correct RBAC permissions required for teams
to move jobs using Move/Copy/Promote interface.
- Teams will need at least the Move Job permission.
- This is included in the "Developer" role in default RBAC setup
Teams should now be able to move folders and jobs to which they have permissions from the source CM to their target MM.
An example user view of a migrated Client Master:

Using Move/Copy/Promote on their folder, users can select the appropriate target
MM as the destination:

After the MCP action completes successfully, the migrated folder will be in
the root of the target MM.
