startBuildActivity task not recognized
![](http://jazz.net/_images/myphoto/a589bec87fb25f842d443063041e3567.jpg)
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:
The shell script I use to start my Jazz Build Engine is:
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:
Thanks in advance,
John Czukkermann
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
![](http://jazz.net/_images/myphoto/a589bec87fb25f842d443063041e3567.jpg)
On 2/11/2012 2:53 PM, jlczuk wrote:
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
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