Hi,
I don't use this:
Do Not Reset Config Spec[ ] If checked, Hudson will not use 'cleartool setcs' even if the specifed config spec is different to the dynamic view current config spec.
for the clearcase plug-in.
And when I force a build I get the following result.
[workspace] $ /usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
cleartool: Error: Unable to change configuration specification: Permission denied.
FATAL: Base ClearCase failed. exit code=1
FATAL: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
java.io.IOException: cleartool did not return the expected exit code. Command line="setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt", actual exit code=1
at hudson.plugins.clearcase.HudsonClearToolLauncher.run(HudsonClearToolLauncher.java:100)
at hudson.plugins.clearcase.ClearToolDynamic.setcs(ClearToolDynamic.java:62)
at hudson.plugins.clearcase.action.DynamicCheckoutAction.checkout(DynamicCheckoutAction.java:57)
at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:369)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1001)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:428)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:376)
at hudson.model.Run.run(Run.java:1174)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
It is quite clear that it is a permission problem but I don't know if it is user hudson that is not allowed to change config spec or another user.
However if I go to the workspace where the file configspec5301923926848382982.txt is
cd /var/lib/hudson/jobs/JobTx01/workspace
and execute the same command:
/usr/atria/bin/cleartool setcs -tag eraonel_rnc_roam_wanessa_fp_target_build configspec5301923926848382982.txt
I get no error message.
I checked that clearcase is correctly installed using "Check clearcase version".
I see that user hudson is owning the files. Does my dynamic view have to be owned by hudson too?
Any hints?
br,
//mikael