It's all about the answers!

Ask a question

Setup Continuous Integration with ClearCase Adapter.


Andrew Meng (11) | asked May 14 '10, 12:00 p.m.
Hello,
Can anyone share a detailed steps(or document/link) to setup BF to do a continous integration by monitoring source code changes in ClearCase repository?

Thanks a lot!
Andrew

19 answers



permanent link
ep zee (9695) | answered Jul 12 '10, 3:15 p.m.
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


<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

permanent link
Brent Ulbricht (2.5k11) | answered Jul 13 '10, 9:56 a.m.
JAZZ DEVELOPER
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

permanent link
ep zee (9695) | answered Jul 13 '10, 10:17 a.m.
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.-

permanent link
Brent Ulbricht (2.5k11) | answered Jul 13 '10, 3:04 p.m.
JAZZ DEVELOPER
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

permanent link
ep zee (9695) | answered Jul 13 '10, 4:10 p.m.
Awesome, problem solved!!!

Finally I used:

<setenv name="Changes" value="RUN" type="temp append" condition="false($latest_build eq $latest_update)"/>




Thanks a lot!!!

permanent link
ep zee (9695) | answered Jul 29 '10, 3:31 p.m.
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.-

permanent link
Brent Ulbricht (2.5k11) | answered Jul 30 '10, 8:47 a.m.
JAZZ DEVELOPER
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

permanent link
ep zee (9695) | answered Jul 30 '10, 8:53 a.m.

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.-

permanent link
Brent Ulbricht (2.5k11) | answered Jul 30 '10, 9:05 a.m.
JAZZ DEVELOPER

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

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.