Problem With Build Pipeline Jobs After Migrating To Cloudbees Jenkins Enterprise

Issue

After migrating to CloudBees Jenkins Enterprise from Jenkins some Build Pipeline jobs do not load.  The following stack trace is shown:

java.lang.ClassCastException: java.lang.Integer cannot be cast to hudson.model.Action
at hudson.model.Run.onLoad(Run.java:340)
at hudson.model.RunMap.retrieve(RunMap.java:219)
at hudson.model.RunMap.retrieve(RunMap.java:56)
at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:690)
at jenkins.model.lazy.AbstractLazyLoadRunMap.load(AbstractLazyLoadRunMap.java:652)
at jenkins.model.lazy.AbstractLazyLoadRunMap.search(AbstractLazyLoadRunMap.java:382)
at jenkins.model.lazy.LazyLoadRunMapEntrySet$1.next(LazyLoadRunMapEntrySet.java:74)
at jenkins.model.lazy.LazyLoadRunMapEntrySet$1.next(LazyLoadRunMapEntrySet.java:63)
at java.util.AbstractMap$2$1.next(AbstractMap.java:385)

 

Environment

CloudBees Jenkins Enterprise

Build Pipeline Plugin >= v1.4.6

Resolution

Downgrade the Build Pipeline Plugin to v1.4.5 as a workaround to avoid this issue.

Have more questions? Submit a request

1 Comments

  • 0
    Avatar
    Shantul Nigam

    Is there a better solution for determining why this is breaking? The solution that is proposed here locks us into the 1.4.5 version of the plugin effectively forever.

Please sign in to leave a comment.