1
votes

I've upgraded Jenkins ClearCase Plugin and my build job is no longer able to determine load rules properly. Things worked before the plugin upgrade.

Environment

CC Plugin: org.jenkins-ci.plugins:clearcase:1.5.3
Jenkins: 1.596
I'm using UCM ClearCase as Source Code Management. 
Jenkins builds a new snapshot view on each job execution.

Issue

I have three baselines in the stream. The console output shows that plugin sees all of these baselines. However, from two of these baselines, the plugin is unable to determine components.

Command [workspace] $ cleartool lsbl -fmt %[depends_on_closure]Xp baseline:bn1@\xyz is listed in the console output. It is followed by a blank line. When I execute this command in DOS prompt, I also get nothing.

Command [workspace] $ cleartool lsbl -fmt %[depends_on_closure]Xp baseline:bn3@\xyz is listed in the console output. It is followed by a line listing components.

So, out of three baselines, one is working and its components are read and added to load rules properly. The view is built but since load rules are missing components from two other baselines, the view can't be properly updated.

Explicit load rule list works

The plugin allows to list load rules explicitly (Define load rules manually). When I do that, view is built and updated properly.

What could be preventing the newest plugin from seeing components and building load rules dynamically?

1

1 Answers

0
votes

When you compare what has been changed in the latest release of the Jenkins ClearCase plugin, you see commit f2c0eb8: "When view is invalid, we should build immediately, it is useless to determine the remote baseline": that seems the only commit which might be somewhat related to not computing baselines.

If that isn't it (meaning the view is perfectly fine, and the lsbl should work), it is a bug which needs to be reported to the Jenkins ClearCase plugin issue tracker (and/or the one for the ClearCase UCM plugin).

cleartool lsbl is here used with fmt_ccase option "depends_on_closure": lists All of the baselines in the full dependence graph of a composite baseline.

Jenkins shows "Downgrade to 1.3.11"

Most of the changes happened between 1.3.19 and 1.4, including clearcase/ucm/service/BaselineService.java, which uses the lsbl -fmt.