It's all about the answers!

Ask a question

startBuildActivity task not recognized


John Czukkermann (3655) | asked Feb 11 '12, 5:53 p.m.
Hi, I'm having one heck of a time trying to get the startBuildActivity task to work. No matter what I try, I get the following information in my log with the failed build:


2012-02-11 17:30:03
2012-02-11 17:30:03 Substituted the following build property variables:
2012-02-11 17:30:03 team.scm.fetchDestination = ${build-root-dir} --> team.scm.fetchDestination = /tmp/zOSMFCoreBuilds/${buildRequesterUserId}/zOSMF-Core-CI-20120211-1730
2012-02-11 17:30:03 build-root-dir = /tmp/zOSMFCoreBuilds/${buildRequesterUserId}/${buildLabel} --> build-root-dir = /tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730
2012-02-11 17:30:03 team.scm.fetchDestination = /tmp/zOSMFCoreBuilds/${buildRequesterUserId}/zOSMF-Core-CI-20120211-1730 --> team.scm.fetchDestination = /tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730
2012-02-11 17:30:03
2012-02-11 17:30:03
2012-02-11 17:30:03 Substituted the following configuration element property variables:
2012-02-11 17:30:03 com.ibm.team.build.ant : com.ibm.team.build.ant.buildFile = ${build-root-dir}/IzuBuild/build.xml --> com.ibm.team.build.ant.buildFile = /tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730/IzuBuild/build.xml
2012-02-11 17:30:03 com.ibm.team.build.ant : com.ibm.team.build.ant.propertiesFile = ${build-root-dir}/ant.properties --> com.ibm.team.build.ant.propertiesFile = /tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730/ant.properties
2012-02-11 17:30:03
2012-02-11 17:30:03 running on host: aqmvsoe.pok.ibm.com
2012-02-11 17:30:03 Should build occur?
2012-02-11 17:30:03 Yes: Always build a user initiated request.
2012-02-11 17:30:03 Invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-02-11 17:30:04 Fetching files to fetch destination "/AQFT/tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730" ...
2012-02-11 17:30:43 Invoking build participant "com.ibm.team.build.ant"
Buildfile: /AQFT/tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730/IzuBuild/build.xml

loadproperties:

loadwin7properties:

loadxpproperties:

loadzosproperties:
Performing a z/OS build.

init:
${activityLabel} pd=nyr3solt userId=czuk@us.ibm.com zOSMF-Core-CI-20120211-1730 https://jazz07.rchland.ibm.com:19443/ccm/ _7xbUcFT_EeGHKbf1wdPPrw

BUILD FAILED
/AQFT/tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730/IzuBuild/build.xml:50: Problem: failed to create task or type startBuildActivity
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


Total time: 0 seconds
Build failed. Exit value was 1.
2012-02-11 17:30:46 Invoking post-build participant "com.ibm.team.build.autoDeliver"
2012-02-11 17:30:46 Aborting post-build deliver. A snapshot was not created by the Jazz SCM pre-build participant.


The shell script I use to start my Jazz Build Engine is:

#!/bin/sh

#
# any environment variables for the Java JVM.
# Variables must be exported to be seen by the launcher.
export JAVA_HOME=/java/J6.0_64
export JZOS_HOME=/usr/lpp/java/J6.0_64/lib/ext
BLD_TOOLKIT=/usr/lpp/jazz/repotools/eclipse/buildsystem/buildtoolkit
ANT_HOME=/usr/lpp/jazz/repotools/eclipse/buildsystem/buildengine/eclipse/plugins/org.apache.ant_1.7.1.v20090120-1145
export ANT_HOME=$ANT_HOME
#
export PATH=$JAVA_HOME/bin/classic:$JAVA_HOME/bin:$PATH
#
LIBPATH=/lib:/usr/lib:$BLD_TOOLKIT
LIBPATH=$LIBPATH:$JAVA_HOME/bin/classic:$JAVA_HOME/bin
export LIBPATH=$LIBPATH:
#
echo "****** ****** ***** >>>>>"
echo "PATH is :"
echo "${PATH}"
echo "****** ****** ***** <<<<<CLASSPATH> /tmp/czuk/jazzbe.log 2>&1 &


I'd appreciate if someone could take a look for anything obviously wrong.

Here is the snippet of my build.xml with the startBuildActivity task:

<target>
<echo>
<startBuildActivity>


Thanks in advance,
John Czukkermann

3 answers



permanent link
David Olsen (5237) | answered Feb 11 '12, 8:23 p.m.
JAZZ DEVELOPER
On 2/11/2012 2:53 PM, jlczuk wrote:
Hi, I'm having one heck of a time trying to get the
startBuildActivity task to work. No matter what I try, I get the
following information in my log with the failed build:

BUILD FAILED

/AQFT/tmp/zOSMFCoreBuilds/czuk@us.ibm.com/zOSMF-Core-CI-20120211-1730/IzuBuild/build.xml:50:
Problem: failed to create task or type startBuildActivity
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any<presetdef>/<macrodef
declarations have taken place.

The Jazz Build Engine (JBE) will add the Jazz build toolkit JARs to
Ant's classpath (if you check the correct box in your build definition).
But the JBE will not automatically define the build toolkit's tasks.
You have to do that yourself. That can be done with

<import>

(where ${jazzBuildToolkit} is the path to the build toolkit). Or you
can declare each task individually, such as:

<taskdef>

--
David Olsen
IBM Rational
Beaverton, Oregon

permanent link
John Czukkermann (3655) | answered Feb 13 '12, 7:48 a.m.
Thank you David, that did the trick.

I had to guess a little as to exactly what to do because it seems the code blocks are getting truncated in the forums. I noticed that when I re-read my original post.

Thanks again,
John

permanent link
Mike Pawlowski (6861) | answered May 06 '14, 2:51 p.m.
JAZZ DEVELOPER
edited May 06 '14, 2:52 p.m.
 Thanks. This worked for me (XML escaped):

 
<taskdef name="startBuildActivity" classname="com.ibm.team.build.ant.task.StartBuildActivityTask" />
		

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.