Name: jenkins-sync-plugin
Owner: OpenShift
Description: Synchronizes OpenShift BuildConfig objects using Jenkins as Jenkins jobs, then synchronizes build statuses into the OpenShift Build objects
Forked from: jenkinsci/openshift-sync-plugin
Created: 2016-03-08 15:20:36.0
Updated: 2017-11-18 04:51:18.0
Pushed: 2018-01-17 21:31:26.0
Homepage:
null
Size: 634
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
Other Committers
User | Email | Most Recent Commit | # Commits |
README
openshift-jenkins-sync-plugin
This Jenkins plugin keeps OpenShift BuildConfig and Build objects in sync with Jenkins Jobs and Builds.
The synchronization works like this
- changes to OpenShift BuildConfig resources for Jenkins pipeline builds result in updates to the Jenkins Job of the same name; any BuildConfig source secrets are converted into Jenkins Credentials and registered with
the Jenkins Credentials Plugin.
- creating a new OpenShift Build for a BuildConfig associated with a Jenkins Job results in the Jenkins Job being triggered
- changes in a Jenkins Build Run thats associated with a Jenkins Job gets replicated to an OpenShift Build object (which is created if necessary if the build was triggered via Jenkins)
- changes in OpenShift ConfigMap resources are examined for XML documents that correspond to Pod Template configuration for the Kubernetes Cloud plugin at http://github.com/jenkinsci/kubernetes-plugin and change the configuration of the Kuberentes Cloud plugin running in Jenkins to add, edit, or remove Pod Templates based on what exists in the ConfigMap; also note, if the setting of the Pod Template starts with “imagestreamtag:“, then this plugin will look up the ImageStreamTag for that entry (stripping “imagestreamtag:” first) and if found, replace the entry with the ImageStreamTag's Docker image reference.
- changes to OpenShift ImageStream resources with the label “role” set to “jenkins-slave” and ImageStreamTag resources with the annotation “role” set to “jenkins-slave” are considered images to used with Pod Templates for the Kubernetes Cloud plugin, where the Pod Templates are added, modified, or deleted from the Kubernetes cloud plugin as corresponding ImageStreams and ImageStreamTags are added, modified, or deleted, or have the “role=jenkins-slave” setting changed.
- changes to OpenShift Secrets with the label “credential.sync.jenkins.openshift.io” set to “true” will result in those Secrets getting coverted into Jenkins Credentials that are registered with the Jenkins Credentials Plugin.
Development Instructions
Synchronization Polling Frequencies