The previous build failed because the default "ant" is 1.7.x, which
does not support an option we use. I just updated the build command
with:

export PATH=/home/jenkins/tools/ant/apache-ant-1.8.2/bin:${PATH}

Ideally test.sh should respect ANT_HOME if set. I'll post a patch.

--travis


On Thu, Dec 6, 2012 at 5:50 PM, Travis Crawford
<[email protected]> wrote:
> Hey hcat gurus -
>
> short version: please run ./build-support/scripts/test.sh for routine
> local testing as it contains our collective knowledge of what commands
> to run. e2e tests have not changed.
>
> details:
>
> In https://issues.apache.org/jira/browse/HCATALOG-558 we committed
> test.sh, a script that contains all the commands one should run when
> doing routine testing on CI or locally. As our needs change we can
> evolve the script and keep everyone on the same page wrt how tests
> should be run.
>
> I just updated https://builds.apache.org/job/Hcatalog-trunk-build/ to
> run test.sh, and kicked off a build.
>
> The full log what what changed is below.
>
>
> NEW BUILD COMMAND:
> #!/bin/bash
> source ${WORKSPACE}/nightly/hudsonEnv.sh
> cd $TRUNK
> ./build-support/scripts/test.sh
>
>
> PREVIOUS BUILD COMMAND
> #!/bin/bash
> source ${WORKSPACE}/nightly/hudsonEnv.sh
> export ANT_HOME=/home/jenkins/tools/ant/apache-ant-1.8.2
> env
> cd $TRUNK
> $ANT_HOME/bin/ant -v ${BUILD_FLAGS} ${BUILD_ARGS} ${BUILD_TARGETS}
>
>
> REMOVED BUILD PARAMETERS AS THEY ARE NO LONGER NEEDED
>
> VERSION
> 0.5.0-SNAPSHOT
> To set build version
>
> BUILD_FLAGS
> -Dhcatalog.version=$VERSION -Dtest.junit.output.format=xml
> -Divy.default.ivy.user.dir=${WORKSPACE}/trunk/build
> To set build flags
>
> BUILD_ARGS
> -Dforrest.home=$FORREST_HOME
> To set various build tools home folder
>
> BUILD_TARGETS
> clean test docs forrest tar mvn-deploy
> To call regular build targets
>
>
> Thanks!
> Travis

Reply via email to