Setup Continuous Integration with ClearCase Adapter.

19 answers

Hello bju, a quick update: it always evaluates to false! :(
I'm using 3 vars to "debug":
var name = initial value
TEST1 = 1111
TEST2 = 2222
TEST3 = 3333
After the adaptor execution I get:
TEST1 = dateA
TEST2 = dateA
TEST3 = 3333
Any idea what's going on?
ps: test1 equals test2 on the environment
I'm using 3 vars to "debug":
var name = initial value
TEST1 = 1111
TEST2 = 2222
TEST3 = 3333
<resultsblock>
<match pattern="^Last accessed (.*) (AM|PM)">
<bom category="Result" section="LastAccessDate">
<field name="lastAccessedDate" text="$1"/>
</bom>
<setenv group="[ADAPTOR]" name="latest_update" value="$1"/>
<setenv name="Changes" value="RUN" type="temp append" condition="false($latest_build==$latest_update)"/>
<setenv group="[ADAPTOR]" name="TEST1" value="$latest_build" condition="false($latest_build==$latest_update)"/>
<setenv group="[ADAPTOR]" name="TEST2" value="$latest_update" condition="false($latest_build==$latest_update)"/>
<setenv group="[ADAPTOR]" name="TEST3" value="$1" condition="true($latest_build==$latest_update)"/>
</match>
</resultsblock>
After the adaptor execution I get:
TEST1 = dateA
TEST2 = dateA
TEST3 = 3333
Any idea what's going on?
ps: test1 equals test2 on the environment

Hi,
I don't have your environment so it's hard to determine exactly what is happening. You might try the <setenv> statements without the condition to see what the variables $latest_build, $latest_update, and $1 are expanding to, and that might give a better idea as to why the condition evaluation isn't working as expected.
bju
I don't have your environment so it's hard to determine exactly what is happening. You might try the <setenv> statements without the condition to see what the variables $latest_build, $latest_update, and $1 are expanding to, and that might give a better idea as to why the condition evaluation isn't working as expected.
bju

Hi,
I don't have your environment so it's hard to determine exactly what is happening. You might try the <setenv> statements without the condition to see what the variables $latest_build, $latest_update, and $1 are expanding to, and that might give a better idea as to why the condition evaluation isn't working as expected.
bju
Hi, the vars values are:
$1 = 1/1/00 11:22
$latest_update = 1/1/00 11:22
$latest_build = 1/1/00 11:22
$TEST1 = 1/1/00 11:22
$TEST2 = 1/1/00 11:22
$TEST3 = 3333
I've changed all vars before the build to ensure I get the adaptor output. The only var that doesn't change is TEST3 (I left the condition="true($latest_build==$latest_update)" statement)
Thanks!
ep.-

Hi,
I don't have your environment so it's hard to determine exactly what is happening. You might try the <setenv> statements without the condition to see what the variables $latest_build, $latest_update, and $1 are expanding to, and that might give a better idea as to why the condition evaluation isn't working as expected.
bju
Hi, the vars values are:
$1 = 1/1/00 11:22
$latest_update = 1/1/00 11:22
$latest_build = 1/1/00 11:22
$TEST1 = 1/1/00 11:22
$TEST2 = 1/1/00 11:22
$TEST3 = 3333
I've changed all vars before the build to ensure I get the adaptor output. The only var that doesn't change is TEST3 (I left the condition="true($latest_build==$latest_update)" statement)
Thanks!
ep.-
Hi ep,
Could you try changing in your condition statement the "==" to "eq" like the ones below.
<setenv name="Changes" value="RUN" type="temp append" condition="false($latest_build eq $latest_update)"/>
<setenv group="[ADAPTOR]" name="TEST1" value="$latest_build" condition="false($latest_build eq $latest_update)"/>
<setenv group="[ADAPTOR]" name="TEST2" value="$latest_update" condition="false($latest_build eq $latest_update)"/>
<setenv group="[ADAPTOR]" name="TEST3" value="$1" condition="true($latest_build eq $latest_update)"/>
bju

Now I have a strange problem...
The project has been running ok in server A, but in server B it only executes de adaptor. When it pass, I get the "passed" message but no other step is executed. When it fails, the build doesn't dissapear from the job list.
It's exactly the same project/environments/adaptor configuration. Could be a BuildForge configuration issue?
Thanks!
ep.-
The project has been running ok in server A, but in server B it only executes de adaptor. When it pass, I get the "passed" message but no other step is executed. When it fails, the build doesn't dissapear from the job list.
It's exactly the same project/environments/adaptor configuration. Could be a BuildForge configuration issue?
Thanks!
ep.-

Now I have a strange problem...
The project has been running ok in server A, but in server B it only executes de adaptor. When it pass, I get the "passed" message but no other step is executed. When it fails, the build doesn't dissapear from the job list.
It's exactly the same project/environments/adaptor configuration. Could be a BuildForge configuration issue?
Thanks!
ep.-
Hi ep,
Could you check if the adaptor link is in 'Debug'mode? In the UI if you go to Projects -> Adaptor Links -> , there is a 'State' attribute that can be set to Active, Inactive, or Debug. The behavior you describe sounds like the Debug state.
bju

Hi ep,
Could you check if the adaptor link is in 'Debug'mode? In the UI if you go to Projects -> Adaptor Links -> , there is a 'State' attribute that can be set to Active, Inactive, or Debug. The behavior you describe sounds like the Debug state.
bju
I thought the same thing, but the link state is "active". Any global config that could override this setting?
Thanks!
ep.-

I thought the same thing, but the link state is "active". Any global config that could override this setting?
Thanks!
ep.-
Hi,
Yes, there is a system configuration parameter named 'Link Debug Mode'. In the UI if you go to Administration -> System -> Link Debug Mode, make sure that it is set to 'No'.
bju
page 2of 1 pagesof 2 pages