It's all about the answers!

Ask a question

Automatic Creation of a CQ Build record using CQ_INTERACTION


raghu kokku (111) | asked Oct 18 '11, 6:32 p.m.
Greetings!!!

Trying to create a CQ record automatically using BuildForge but was unsuccessful. Created the following environment variables

CQ_INTERACTION
CQ_DBNAME
CQ_USER
CQ_PASSWORD
CQ_DBSET
CQ_RELEASE_NAME

Assuming the CQ_INTERACTION=ON should trigger a perl script(bfcqbuild.pl) which is not happening. Ran the perl script from the command line and it worked perfectly fine and created a record.

Did anyone have the similar issue?

Appreciate your help.

Regards,

Raghu

4 answers



permanent link
Brent Ulbricht (2.5k11) | answered Oct 20 '11, 2:38 p.m.
JAZZ DEVELOPER
Greetings!!!

Trying to create a CQ record automatically using BuildForge but was unsuccessful. Created the following environment variables

CQ_INTERACTION
CQ_DBNAME
CQ_USER
CQ_PASSWORD
CQ_DBSET
CQ_RELEASE_NAME

Assuming the CQ_INTERACTION=ON should trigger a perl script(bfcqbuild.pl) which is not happening. Ran the perl script from the command line and it worked perfectly fine and created a record.

Did anyone have the similar issue?

Appreciate your help.

Regards,

Raghu


Hi,

Did you get an error message? Also, were the CQ environment variables set in the environment group at the project level?

Brent Ulbricht
RTC Build Lead

permanent link
raghu kokku (111) | answered Oct 20 '11, 6:06 p.m.
Hello Brent,

Thank you for the reply.
Mentioned is the error i see in the log

sh: cqperl: not found.
Use of uninitialized value in pattern match (m//) at /PerlApp/BuildForge/Build/CQRecord.pm line 160.
Use of uninitialized value in scalar chomp at /PerlApp/BuildForge/Build/CQRecord.pm line 175.
Use of uninitialized value in pattern match (m//) at /PerlApp/BuildForge/Build/CQRecord.pm line 108.

and in the Management Console
10/20/11 09:49AM EXEC Build cancelled via Management Console.

I set the environment variable at the project level.

Found while browsing that it might be because of shebang line in the perl script. Hence changed the perl scripts (bfcqbuild.pl and bfcqresolve.pl) in the integration folder but of no use.

Thank You again,

Regards,

Raghu




Greetings!!!

Trying to create a CQ record automatically using BuildForge but was unsuccessful. Created the following environment variables

CQ_INTERACTION
CQ_DBNAME
CQ_USER
CQ_PASSWORD
CQ_DBSET
CQ_RELEASE_NAME

Assuming the CQ_INTERACTION=ON should trigger a perl script(bfcqbuild.pl) which is not happening. Ran the perl script from the command line and it worked perfectly fine and created a record.

Did anyone have the similar issue?

Appreciate your help.

Regards,

Raghu


Hi,

Did you get an error message? Also, were the CQ environment variables set in the environment group at the project level?

Brent Ulbricht
RTC Build Lead

permanent link
Christopher Snyder (811111) | answered Oct 20 '11, 6:11 p.m.
We had the same problem in 7.1.2.1.

We checked the engine log and noticed that it was complaining that cqperl was not found. It didn't look in the default location that cqperl usually gets installed in.

So we added a symbolic link in /usr/bin/cqperl that points to /opt/rational/clearquest/bin/cqperl, which allowed the step to complete. (since /usr/bin/ was already in $PATH)

permanent link
raghu kokku (111) | answered Oct 27 '11, 11:53 a.m.
Thank You Chris,

That worked. The error is gone. But now i am facing a licensing issue. Mentioned below are the excerpts from the logs.

Thu Oct 27 09:18:22 CDT 2011: Build: 1814702: CRRBF0487I: CLEARQUEST: ERROR: The operation could not be completed because of a licensing error: License server system does not support this feature.

Thu Oct 27 09:18:22 CDT 2011: Build: 1814702: CRRBF0487I: CLEARQUEST: Feature: ClearQuest

Thu Oct 27 09:18:22 CDT 2011: Build: 1814702: CRRBF0487I: CLEARQUEST: For further information, refer to the FLEXnet Licensing End User Guide,

Thu Oct 27 09:18:22 CDT 2011: Build: 1814702: CRRBF0487I: CLEARQUEST: available at "www.macrovision.com".

Thu Oct 27 09:18:22 CDT 2011: Build: 1814702: CRRBF0487I: CLEARQUEST: Could not connect to ClearQuest - Invalid Initialization Data

Assuming to be fixed if we upgrade the licenses on the license server.

Thank You once again,

Regards,

Raghu

We had the same problem in 7.1.2.1.

We checked the engine log and noticed that it was complaining that cqperl was not found. It didn't look in the default location that cqperl usually gets installed in.

So we added a symbolic link in /usr/bin/cqperl that points to /opt/rational/clearquest/bin/cqperl, which allowed the step to complete. (since /usr/bin/ was already in $PATH)

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.