-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins 2.11, Pipeline Stage View v1.6, CentOS 7
After running a few pipeline executions, if you delete the job and recreate it will show the proper pipeline while building, but after the pipeline has completed running it will revert to showing the pipeline from the previous (deleted) run. After looking at the code to the plugin, I was able to determine that there was a cache and found some code in the tests to invalidate it.
I was able to workaround the issue by running the following code in the script console:
import com.cloudbees.workflow.flownode.FlowNodeUtil
FlowNodeUtil.CacheExtension ext = FlowNodeUtil.CacheExtension.all().get(0);
ext.getExecutionCache().invalidateAll();
ext.getRunCache().invalidateAll();