Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

1. If you need to make changes to some of the Jenkins jobs, do not directly make changes to the pre-configured jobs. Always create a job using the old job as template and make the custom changes.
2. Whenever a new configuration change is release by sunbird for a particular release, it is mandatory that you update your Jenkins jobs with the new updated configuration provided in the release.
3. By not updating the jobs configuration, the job may fail if there are some under the hood changes to Jenkinsfile, shared libraries or Jenkins parameters.
4. As part of the upgrade, the existing jobs which sunbird provides (not custom ones which you have created) are overwritten with new content.
5. Before upgrading, always take a backup of your existing configration using thin backup in Jenkins.
6. Once you are ready to upgrade, follow the below set of steps.

...

8. If there are changes in environment and you require additional folders for other environments, then update the envOrder.txt file with new environment order and run the script.
9. The script will show the list if differences between your current configuration and new configuration. Take a deep look at these changes and when you are ready to update, provide the confirmation as YES.
10. The script will overwrite the existing jobs (only those sunbird provides by default) and update the configurations with new changes of that release.
11. Restart . Add the below two Jenkins environment variables under Mange Jenkins - > Configure System

override_private_branchtrue
override_public_branchtrue

12. Go to Manager Jenkins → Configure System → Global Pipeline Libraries → Change Default Version to release-2.0.0-shared-lib
13. Restart your Jenkins and you are ready to go.
1214. You can take a look at whats changed in existing job and accordingly update the your custom job manually so that the same changes are available in the your custom jobs.