Back Up CloudBees Jenkins Platform on Pivotal Cloud Foundry

Note: CloudBees Jenkins Platform for PCF is deprecated, and no further development will be made against this tile.

This page contains a step-by-step guide you can apply to back up your current Jenkins configuration. You can apply this to CloudBees Jenkins Operations Center instances or to CloudBees Jenkins Enterprise instances.

  1. Log in to a host with access to your BOSH installation.
  2. Make sure the current bosh deployment targets the correct tile. Otherwise, look for the most recent manifest under /var/tempest/workspaces/default/deployments and bosh deployment /var/tempest/workspaces/default/deployments/p-jenkins-xxxx.xml.
  3. Use bosh ssh to connect to the VM running the Jenkins instance you wish to backup.
    • For CJOC, connect to jenkins-oc-xxx/0.
    • For CJE, connect to jenkins_master-xxx/n. We refer to this job name as JOB_INDEX in next steps.
  4. Run sudo su to switch to root user.
  5. Run cd /var/vcap/store
  6. Run the appropriate zip command:
    • For CJOC, run zip -y -r -0 /tmp/ jenkins-oc.
    • For CJE, run zip -y -r -0 /tmp/ jenkins_master.
  7. Run exit.
  8. Run bosh scp $JOB_INDEX --download /tmp/ .. This creates file named, or something similar, depending on the job name, in the current directory.