diff --git a/docs/ci.md b/docs/ci.md index 8f6b3c3..03b1226 100644 --- a/docs/ci.md +++ b/docs/ci.md @@ -193,32 +193,8 @@ Worth knowing that while you can push through ssh, there is no allowed shell for !!! warning We'll implement some rotation to clean-up used space on that machine on regular basis, so don't expect pushed files to remain available forever ! -## Migration to new CI instance +## Sending mails from CI env -In case you want to migrate your old jenkins configuration to new CI instance follow this guide. +In case you'd need to send mail notifications (from jenkins or other namespace in openshift), you can use the (internal only !) relay `smtp.ci.centos.org` but just ensure that the `From:` is from a valid email address/domain though (can be rejected by some remote spam checks -1. Login to [old openshift instance](https://console-openshift-console.apps.ocp.ci.centos.org/) -2. Click at your username in upper right corner and select `Copy login command` -3. Use [oc](https://console-openshift-console.apps.ocp.ci.centos.org/command-line-tools) tool to login -4. Switch to correct project `oc project ` (you should already be on correct project, but it's better to check) -5. Copy the old configuration to your machine `oc rsync :/var/lib/jenkins/jobs ` (you can find the jenkins pod name with `oc get pods|grep jenkins`) -!!! note - Usually you want to only migrate jobs, but if you need any other configuration file, just - do `oc rsh ` and look inside `/var/lib/jenkins` for all configuration files. - Just be aware that some of the files could contain IP or hostname that will no longer work - in new CI instance. - -6. Login to [new openshift instance](https://console-openshift-console.apps.ocp.cloud.ci.centos.org/) -7. Click at your username in upper right corner and select `Copy login command` -8. Use [oc](https://console-openshift-console.apps.ocp.ci.centos.org/command-line-tools) tool to login -9. Switch to correct project `oc project ` (you should already be on correct project, but it's better to check) -10. Copy the configuration files from your machine to openshift pod `oc rsync jobs :/var/lib/jenkins` -11. Login to new Jenkins instance (the URL should be `https://jenkins-.apps.ocp.cloud.ci.centos.org`) -12. In the `Manage Jenkins` page click on `Reload Configuration from Disk` - -Now you should have your old configuration available in new Jenkins instance. - -!!! warning - This migration doesn't migrate any credentials from the old Jenkins instance. Those needs to be - migrated manually, because those are not stored in `/var/lib/jenkins`.