Problem With Build Pipeline Jobs After Migrating To CloudBees Jenkins Enterprise

Article ID:204941674
1 minute readKnowledge base

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.

This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.