error on ant build with rational build agent
I've created a "Ant with Enterprise Extensions - Rational Build Agent" build definition.
Following the instructions of this artilcle
https://jazz.net/library/article/195/
I need to run some SCM command with ant (I know that I've another way with a Command Line build).
This is my ant file
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="runJCL">
<property name="run" value="build/run_and_filter.pl"/>
<loadproperties>
<file file="build.properties"/>
</loadproperties>
<target name="runJCL" depends="loadWRKSPC" description="run build JCL"/>
<target name="loadWRKSPC">
<exec executable="${scm}" failonerror="true">
<arg value="-u"/>
<arg value="CLMADMIN"/>
<arg value="-P"/>
<arg value="CLMADMIN"/>
<arg value="-f"/>
<arg value="-d"/>
<arg value="/ADCD/tmp/test_load "/>
<arg value="'BPVN Build Workspace Test'"/>
<arg value="'/BPVN HW Component/BPVN HelloWorldSample/zOSsrc/COBOL/HELLO.cbl'"/>
</exec>
</target>
</project>
Unfortunately, when I run the Build definition I receive the following error
Found a user request for build definition SCM ant z/os 2
Substituted the following build property variables:
Substituted the following configuration element property variables:
Should build occur?
Yes: Always build a user initiated request.
java.lang.IllegalArgumentException: invalid UUID []
at com.ibm.team.repository.common.UUID.valueOf(UUID.java:76)
at com.ibm.teamz.internal.build.preprocess.service.TeamzPreprocessPreBuildAgentParticipant.init(TeamzPreprocessPreBuildAgentParticipant.java:164)
at com.ibm.teamz.internal.build.preprocess.service.TeamzPreprocessPreBuildAgentParticipant.generateCmds(TeamzPreprocessPreBuildAgentParticipant.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy876.generateCmds(Unknown Source)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeBuildParticipants(BuildAgentRequestService.java:702)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeParticipants(BuildAgentRequestService.java:689)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.runBuild(BuildAgentRequestService.java:268)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy405.runBuild(Unknown Source)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildRequestLookupService.lookupBuildRequestAndRun(BuildRequestLookupService.java:100)
at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy406.lookupBuildRequestAndRun(Unknown Source)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentLoopRunnable.run(BuildAgentLoopRunnable.java:29)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentLoopTask.runTask(BuildAgentLoopTask.java:26)
at com.ibm.team.repository.service.async.AbstractAutoScheduledTask.executeTask(AbstractAutoScheduledTask.java:86)
at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy407.executeTask(Unknown Source)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:127)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:97)
at java.lang.Thread.run(Thread.java:811)
Any idea?
Thanks in advance.
Bye
Following the instructions of this artilcle
https://jazz.net/library/article/195/
I need to run some SCM command with ant (I know that I've another way with a Command Line build).
This is my ant file
<?xml version="1.0" encoding="UTF-8"?>
<project name="project" default="runJCL">
<property name="run" value="build/run_and_filter.pl"/>
<loadproperties>
<file file="build.properties"/>
</loadproperties>
<target name="runJCL" depends="loadWRKSPC" description="run build JCL"/>
<target name="loadWRKSPC">
<exec executable="${scm}" failonerror="true">
<arg value="-u"/>
<arg value="CLMADMIN"/>
<arg value="-P"/>
<arg value="CLMADMIN"/>
<arg value="-f"/>
<arg value="-d"/>
<arg value="/ADCD/tmp/test_load "/>
<arg value="'BPVN Build Workspace Test'"/>
<arg value="'/BPVN HW Component/BPVN HelloWorldSample/zOSsrc/COBOL/HELLO.cbl'"/>
</exec>
</target>
</project>
Unfortunately, when I run the Build definition I receive the following error
Found a user request for build definition SCM ant z/os 2
Substituted the following build property variables:
Substituted the following configuration element property variables:
Should build occur?
Yes: Always build a user initiated request.
java.lang.IllegalArgumentException: invalid UUID []
at com.ibm.team.repository.common.UUID.valueOf(UUID.java:76)
at com.ibm.teamz.internal.build.preprocess.service.TeamzPreprocessPreBuildAgentParticipant.init(TeamzPreprocessPreBuildAgentParticipant.java:164)
at com.ibm.teamz.internal.build.preprocess.service.TeamzPreprocessPreBuildAgentParticipant.generateCmds(TeamzPreprocessPreBuildAgentParticipant.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy876.generateCmds(Unknown Source)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeBuildParticipants(BuildAgentRequestService.java:702)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.invokeParticipants(BuildAgentRequestService.java:689)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentRequestService.runBuild(BuildAgentRequestService.java:268)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy405.runBuild(Unknown Source)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildRequestLookupService.lookupBuildRequestAndRun(BuildRequestLookupService.java:100)
at sun.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy406.lookupBuildRequestAndRun(Unknown Source)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentLoopRunnable.run(BuildAgentLoopRunnable.java:29)
at com.ibm.rational.buildforge.buildagent.internal.service.BuildAgentLoopTask.runTask(BuildAgentLoopTask.java:26)
at com.ibm.team.repository.service.async.AbstractAutoScheduledTask.executeTask(AbstractAutoScheduledTask.java:86)
at sun.reflect.GeneratedMethodAccessor337.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56)
at $Proxy407.executeTask(Unknown Source)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.runTask(AsynchronousTaskRunner.java:127)
at com.ibm.team.repository.service.internal.scheduler.AsynchronousTaskRunner.run(AsynchronousTaskRunner.java:97)
at java.lang.Thread.run(Thread.java:811)
Any idea?
Thanks in advance.
Bye