Jenkins Sync Plugin for OCP 4.8 doesn't synchronize as expected

Solution Verified - Updated -

Issue

  • When using the Jenkins version openshift4/ose-jenkins:v4.8, JenkinsPipeline BuildConfigs are not synchronised as expected.
  • The openshift-sync plugin does not synchronise with OpenShift Container Platform
  • Errors like the following can be seen when viewing the Jenkins logs:

    2021-10-20 13:49:57 SEVERE  hudson.triggers.SafeTimerTask run Timer task io.fabric8.jenkins.openshiftsync.ConfigMapWatcher$1@332aedfa failed
    java.lang.NoSuchMethodError: 'java.lang.Object io.fabric8.kubernetes.client.dsl.WatchAndWaitable.watch(java.lang.Object)'
    at io.fabric8.jenkins.openshiftsync.ConfigMapWatcher$1.doRun(ConfigMapWatcher.java:82)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:91)
    at jenkins.security.ImpersonatingScheduledExecutorService$1.run(ImpersonatingScheduledExecutorService.java:67)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
    at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
    at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:829)
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP) 4.8
  • Image openshift4/ose-jenkins:v4.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content