It's all about the answers!

Ask a question

RTC 4.0 - Build definition for Z/OS


eric nolmans (281712) | asked Dec 04 '12, 10:29 a.m.
Hi,

I would to like to define a build definition for zos COBOL members.
I'm looking after some documents that explain step by step how to define :
a build engine which parameters need to be set
a build defintion

thanks

3 answers



permanent link
eric nolmans (281712) | answered Dec 05 '12, 7:48 a.m.
edited Dec 05 '12, 7:50 a.m.
I defined a build for Zos but when I started a build request the next errors are displayed in the log file

Found a user request for build definition Build.XX1.M01
Substituted the following build property variables:
Substituted the following configuration element property variables:
Should build occur?
Yes: Always build a user initiated request.
The JAZZ_USER build property is not specified.  The build pre-processing code will be running under the ADMIN user ID.  If you wish to run the build pre-processing code under a user ID other than ADMIN, define the JAZZ_USER build property either in your build engine or your build definition.
Accepting changes into workspace "BUILD-RTC Workspace"...
com.ibm.team.repository.common.TeamRepositoryException: com.ibm.team.build.common.TeamBuildException: The specified build repository workspace flow target stream does not support source code data scanning.  A dependency build cannot be executed.
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeBuildParticipants(BuildAgentRequestService.java:923)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeParticipants(BuildAgentRequestService.java:898)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.runBuild(BuildAgentRequestService.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy1606.runBuild(Unknown Source)
    at com.ibm.rational.buildforge.buildagent.internal.service.RunBuildCommandTask.transactionSucceeded(RunBuildCommandTask.java:49)
    at sun.reflect.GeneratedMethodAccessor517.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy1607.transactionSucceeded(Unknown Source)
    at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$2.transactionSucceeded(AsynchronousTaskSchedulerService.java:828)
    at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$2.executeTask(AsynchronousTaskSchedulerService.java:837)
    at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:136)
    at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:99)
    at java.lang.Thread.run(Thread.java:736)
Caused by: java.util.concurrent.ExecutionException: com.ibm.team.build.common.TeamBuildException: The specified build repository workspace flow target stream does not support source code data scanning.  A dependency build cannot be executed.
    at com.ibm.team.repository.service.internal.permission.ImpersonationService.runAs(ImpersonationService.java:79)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy1437.runAs(Unknown Source)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeBuildParticipants(BuildAgentRequestService.java:916)
    ... 23 more
Caused by: com.ibm.team.build.common.TeamBuildException: The specified build repository workspace flow target stream does not support source code data scanning.  A dependency build cannot be executed.
    at com.ibm.team.enterprise.internal.build.preprocess.service.AntDependencyPreBuildAgentParticipant.updateDependencyData(AntDependencyPreBuildAgentParticipant.java:481)
    at com.ibm.team.enterprise.internal.build.preprocess.service.AntDependencyPreBuildAgentParticipant.generateCmds(AntDependencyPreBuildAgentParticipant.java:169)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy2251.generateCmds(Unknown Source)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService$2.run(BuildAgentRequestService.java:918)
    at com.ibm.team.repository.service.internal.permission.ImpersonationService.runAs(ImpersonationService.java:75)
    ... 32 more


permanent link
John Riendeau (46626) | answered Dec 05 '12, 8:44 a.m.
JAZZ DEVELOPER
edited Dec 05 '12, 8:45 a.m.
This section in the doc gives a brief walkthrough of setting up a build for a z/OS application.

As for the exception you're getting in the build, I think this text from the error message is key:
The specified build repository workspace flow target stream does not support source code data scanning.  A dependency build cannot be executed.
Make sure that the stream that is the flow target for your build repository workspace is enabled for source code data scanning (see step 6 from the link above).


permanent link
eric nolmans (281712) | answered Dec 05 '12, 9:17 a.m.
Hi John,

thanks I forgot step 6. I fixed it. Now I have a next problem

Found a user request for build definition Build.XX1.M01
Substituted the following build property variables:
Substituted the following configuration element property variables:
Should build occur?
Yes: Always build a user initiated request.
The JAZZ_USER build property is not specified.  The build pre-processing code will be running under the ADMIN user ID.  If you wish to run the build pre-processing code under a user ID other than ADMIN, define the JAZZ_USER build property either in your build engine or your build definition.
Accepting changes into workspace "BUILD-RTC Workspace"...
Performing full dependency analysis
com.ibm.team.repository.common.TeamRepositoryException: com.ibm.team.build.common.TeamBuildException: The specified build workspace contains no buildable programs. A build.xml file cannot be generated.
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeBuildParticipants(BuildAgentRequestService.java:923)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeParticipants(BuildAgentRequestService.java:898)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.runBuild(BuildAgentRequestService.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy1606.runBuild(Unknown Source)
    at com.ibm.rational.buildforge.buildagent.internal.service.RunBuildCommandTask.transactionSucceeded(RunBuildCommandTask.java:49)
    at sun.reflect.GeneratedMethodAccessor517.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy1607.transactionSucceeded(Unknown Source)
    at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$2.transactionSucceeded(AsynchronousTaskSchedulerService.java:828)
    at com.ibm.team.repository.service.internal.AsynchronousTaskSchedulerService$2.executeTask(AsynchronousTaskSchedulerService.java:837)
    at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:136)
    at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:99)
    at java.lang.Thread.run(Thread.java:736)
Caused by: java.util.concurrent.ExecutionException: com.ibm.team.build.common.TeamBuildException: The specified build workspace contains no buildable programs. A build.xml file cannot be generated.
    at com.ibm.team.repository.service.internal.permission.ImpersonationService.runAs(ImpersonationService.java:79)
    at sun.reflect.GeneratedMethodAccessor1052.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy1437.runAs(Unknown Source)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeBuildParticipants(BuildAgentRequestService.java:916)
    ... 23 more
Caused by: com.ibm.team.build.common.TeamBuildException: The specified build workspace contains no buildable programs. A build.xml file cannot be generated.
    at com.ibm.team.enterprise.internal.build.preprocess.service.BuildableFilesGenerator.fullAnalysis(BuildableFilesGenerator.java:436)
    at com.ibm.team.enterprise.internal.build.preprocess.service.BuildableFilesGenerator.generateCmds(BuildableFilesGenerator.java:343)
    at com.ibm.team.enterprise.internal.build.preprocess.service.AntDependencyPreBuildAgentParticipant.generateCmds(AntDependencyPreBuildAgentParticipant.java:209)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:361)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:347)
    at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
    at $Proxy2761.generateCmds(Unknown Source)
    at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService$2.run(BuildAgentRequestService.java:918)
    at com.ibm.team.repository.service.internal.permission.ImpersonationService.runAs(ImpersonationService.java:75)
    ... 31 more


Do you know where I can find a sample document ? It's always easy to start with an example

Comments
John Riendeau commented Dec 05 '12, 9:33 a.m.
JAZZ DEVELOPER

I think that for z/OS dependency builds, a file is considered to be 'buildable' if it's got a language definition associated with it.

The error text:

The specified build workspace contains no buildable programs.
...seems to suggest that no such files exist in the stream.  Have you created language definitions and associated them with the files you're trying to build?  See this page in the doc for information about language definitions.

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.