To execute a command in the context of the dynamic view, you must use:
/opt/rational/clearcase/bin/cleartool setview –exec ‘your-commands-here’
${CLEARCASE_VIEWTAG}
-Jeff Ng
From: [email protected]
[mailto:[email protected]] On Behalf Of Silver$$
Sent: Monday, February 03, 2014 11:25 AM
To: [email protected]
Subject: EXTERNAL: ClearCase Dynamic View Setup
I'm new to Jenkins and trying to setup Jenkins to use Base ClearCase with
dynamic views. I have the following configuration:
Jenkins -> 1.533
ClearCase Plugin -> 1.4
Linux -> 5.7
ClearCase -> 7.0.1.3
Configuration:
Advanced Project Options:
- Use custom workspace -> selected
- Directory -> /vobs/ideas_misc
- Display name -> ideas_misc
Source Code Management:
- Base ClearCase -> selected
- View tag -> view_tag_1234
- View path -> view_tag_1234
- Config spec
--- element * CHECKEDOUT
--- element * .../view_tag_1234/LATEST
--- element * LABEL_123 -mkbranch view_tag_123
--- element * LABEL_456 -mkbranch view_tag_123
--- element * /main/0 -mkbranch view_tag_123
- Load rules
--- /vobs/ideas_misc
- Changeset
--- Current branch -> selected
- Branch(es)
--- view_tag_123
- Labels
--- LABEL_123
--- LABEL_456
- Advanced
--- Use dynamic view -> selected
--- View root -> view
--- Do Not Reset Config Spec -> selected
Console Output:
Start by user Test_User
Building in workspace /vobs/ideas_misc
[INFO] computerChangeLogBeforeCheckout = false
[INFO] computerChangeLogAfterCheckout = false
[ideas_misc] $ /opt/rational/clearcase/bin/cleartool startview view_tag_123
[ideas_misc] $ /opt/rational/clearcase/bin/cleartool catcs view_tag_123
element * CHECKEDOUT
element * .../view_tag_1234/LATEST
element * LABEL_123 -mkbranch view_tag_123
element * LABEL_456 -mkbranch view_tag_123
element * /main/0 -mkbranch view_tag_123
[ideas_misc] $ /bin.sh -xe /opt/apache-tomcat-7.0.41/tmp/hudson(big number).sh
+ ls -l /vobs/ideas_misc
total 0
Finished: SUCCESS
My expectations are that the "ls" command above would list the contents of the
vobs but as shown above it lists and empty directory. From the above cleartool
commands, I don't see cleartool setview view_tag_123 command should set my view.
Shouldn't the clearcase plugin set the view?
Shouldn't the script execution be able to see into the vob directories?
Am I missing a configuration step?
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.