Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
None
-
-
1.0-m11
Description
If you click on the results for a pipeline execution the following error results in the console:
blueocean.js:25708 Uncaught Invariant Violation: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
You will not be able to change stages (step listing doesn't change), or close the results screen. This is true of freestyle or pipeline job types.
This can be seen for example on dogfood: https://ci.blueocean.io/blue/organizations/jenkins/Pipeline%20visualization%20demo/detail/Pipeline%20visualization%20demo/6/pipeline
If you try to exit the result screen:
blueocean.js:17932 Uncaught TypeError: Cannot read property 'componentWillLeave' of undefined
and
blueocean.js:25708 Uncaught Invariant Violation: removeComponentAsRefFrom(...): Only a ReactOwner can have refs. You might be removing a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
results.
This seems to be a recently introduced bug.
I know tscherler was looking at an acceptance test for this screen, which would help trap things like this before they get out.