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

Requesting IBMi dependency build from ANT

I'm trying to make a small wrapper ant script in standard ANT, that will:

1. Request dependency build
2. Request package
3. request deploy

I'm now trying to request the dependency build using <requestTeamBuild>, but I get the following error:

com.ibm.team.repository.common.LicenseNotGrantedException: An error response was received from the Jazz Team Server. Status=400.  
Message: CRJAZ1848E To perform the "com.ibm.teamz.build.rbe.dependency" operation, 
the user (userid="ccm_user") must have one of the following licenses that are installed on the server:
Developer for IBM Enterprise Platforms. The server administrator can assign licenses.

Why is it trying to run the build as the "ccm_user"? I'm specifying userId="RTCBUILDER" in the <requestTeamBuild> tag.

Any comment appreciated
/Morten.

** EDIT - added build XML **



	
	
	
	
		

	
			
	

	
	

0 votes

Comments

Anyone?

I'll go and contact IBM Support soon.

bump 

I'll try one last shot here:

Has anyone tried to run any enterprise extension related build from ANT? Seems like I'm being blocked by this error. I've even tried assigning an enterprise license to the builder AND the CCM user.

Still same error.



One answer

Permanent link
 Hi Morten, can you paste the XML for this task? And which version are you using?

0 votes

Comments

Thanks a lot for your answer. I've updated the original text with my build xml.


We are using RTC v4.0.5. 

The user RTCBUILDER has JazzUsers membership and Build system license.

Where does the error message show up - in the Ant console, or in the build log? i.e. is it failing to kick off the build, or is the build running but fails due to the license error.


Note that if you don't specify the JAZZ_USER property in the build definition (or build engine, or as a property on the request) then the ADMIN user will be used for the build (the user that requests the build is not the user that the build actually runs under).

 I'm so sorry, I missed your answer (I didn't get en email notification). I'll watch it manually from now on.


The error message shows up in the build log.

The build engine is run with the following startup command:

cd /d C:\IBM\BuildSystemToolkit405\buildsystem\buildengine\eclipse
jbe -vm "C:\IBM\JazzTeamServer405\server\jre\bin\java" -repository https://rtctest.sanistaal.dk:9443/jazz -userId RTCBUILDER -pass mypassword -engineId ANT_test_engine

Wouldn't that make the build run as RTCBUILDER?

The structure is such that I have a wrapper build "ANTWrapper" which is basically a simple ant build. This build kicks off other builds with the "RequestBuildTask" is you can see in my xml.

I the build I kick off is a dependency build, I get the error message shown. If it's a standard JAVA / ANT build, it runs fine.

With regard to your specifying the user on the jbe command line, I believe this means that jbe (and therefore the Ant build that gets kicked off) runs as user RTCBUILDER. And in your XML when you specify the user inside <requestteambuild> this is the user that REQUESTS the build, not the user under which the build runs. Have you tried giving "ccm_user" an enterprise license? Or if that's not an option, I would try setting JAZZ_USER=RTCBUILDER on the dependency build definition, to see if that gets the dependency build to run as something other than the default admin account.


I just looked on one of our test systems and it does have the ccm_user set up with the following license: Rational Team Concert - Developer for IBM Enterprise Platforms

 Cool, I'll try setting the JAZZ_USER=RTCBUILDER and setting the enterprise license on ccm_user (I think I've already tried that, but I'll just verify that).


Thx again. I really hope we can get this to work.

 Just tried what we talked about:


1. RTCBUILDER has both build license and enterprise license
2. ccm_user has enterprise license
3. the dependency build (which is kicked off by the wrapper) has the property JAZZ_USER=RTCBUILDER set. I still get the error:

com.ibm.team.repository.common.LicenseNotGrantedException: An error response was received from the Jazz Team Server. Status=400.  Message: CRJAZ1848E To perform the "com.ibm.teamz.build.rbe.dependency" operation, the user (userid="ccm_user") must have one of the following licenses that are installed on the server: Developer for IBM Enterprise Platforms. The server administrator can assign licenses.

Don't really know what to do now. Seems like the enterpriser builds only can be launched manually from the web client or eclipse client?

showing 5 of 6 show 1 more comments

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
× 12,019
× 562
× 63

Question asked: Sep 16 '14, 10:42 a.m.

Question was seen: 5,367 times

Last updated: Dec 12 '14, 5:45 a.m.

Confirmation Cancel Confirm