Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Setup Continuous Integration with ClearCase Adapter.

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

0 votes



19 answers

Permanent link
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

0 votes


Permanent link
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

0 votes


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

0 votes


Permanent link
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

0 votes


Permanent link
Awesome, problem solved!!!

Finally I used:

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




Thanks a lot!!!

0 votes


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

0 votes


Permanent link
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

0 votes


Permanent link

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

0 votes


Permanent link

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

0 votes

1–15 items
page 2of 1 pagesof 2 pages

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 14 '10, 12:00 p.m.

Question was seen: 22,549 times

Last updated: May 14 '10, 12:00 p.m.

Confirmation Cancel Confirm