You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2009/08/25 21:07:16 UTC
svn commit: r807763 - /lucene/java/trunk/build.xml
Author: mikemccand
Date: Tue Aug 25 19:07:16 2009
New Revision: 807763
URL: http://svn.apache.org/viewvc?rev=807763&view=rev
Log:
LUCENE-1845: set nightly property when nightly target is run
Modified:
lucene/java/trunk/build.xml
Modified: lucene/java/trunk/build.xml
URL: http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=807763&r1=807762&r2=807763&view=diff
==============================================================================
--- lucene/java/trunk/build.xml (original)
+++ lucene/java/trunk/build.xml Tue Aug 25 19:07:16 2009
@@ -384,9 +384,12 @@
</filterset>
</copy>
</target>
-
- <target name="nightly" depends="test, package-tgz, changes-to-html">
+
+ <target name="set-nightly-property">
+ <property name="nightly" value="true"/>
</target>
+
+ <target name="nightly" depends="set-nightly-property, test, package-tgz, changes-to-html"/>
<!-- ================================================================== -->
<!-- Packages the distribution with zip -->
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Mark Miller <ma...@gmail.com>.
I'm pretty sure only those on the PMC can get Hudson accounts, and I'm
not sure all of them even have one.
I know Grant and Michael B do - the release says to bug them if you
don't have one. And I think Hoss does - those are the people I know for
sure, but I assume another couple prob have one.
- Mark
Simon Willnauer wrote:
> Uwe, can you configure hudson or who has the power to do so?
> Hudson offers a property field for each Ant Build Step so
> configuration shoul dbe really easy.
>
> simon
>
> On Tue, Aug 25, 2009 at 10:51 PM, Uwe Schindler<uw...@thetaphi.de> wrote:
>
>> Is the nightly target really run by Hudson? From the logs it looks that
>> Hudson is calling the ant targets directly and not only nightly.
>>
>> I would do it the following way: reconfigure Hudson to pass a -Dnightly=true
>> when calling ant.
>>
>> -----
>> Uwe Schindler
>> H.-H.-Meier-Allee 63, D-28213 Bremen
>> http://www.thetaphi.de
>> eMail: uwe@thetaphi.de
>>
>>
>>> -----Original Message-----
>>> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
>>> Sent: Tuesday, August 25, 2009 9:07 PM
>>> To: java-commits@lucene.apache.org
>>> Subject: svn commit: r807763 - /lucene/java/trunk/build.xml
>>>
>>> Author: mikemccand
>>> Date: Tue Aug 25 19:07:16 2009
>>> New Revision: 807763
>>>
>>> URL: http://svn.apache.org/viewvc?rev=807763&view=rev
>>> Log:
>>> LUCENE-1845: set nightly property when nightly target is run
>>>
>>> Modified:
>>> lucene/java/trunk/build.xml
>>>
>>> Modified: lucene/java/trunk/build.xml
>>> URL:
>>> http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=807763&r1=807
>>> 762&r2=807763&view=diff
>>> ==========================================================================
>>> ====
>>> --- lucene/java/trunk/build.xml (original)
>>> +++ lucene/java/trunk/build.xml Tue Aug 25 19:07:16 2009
>>> @@ -384,9 +384,12 @@
>>> </filterset>
>>> </copy>
>>> </target>
>>> -
>>> - <target name="nightly" depends="test, package-tgz, changes-to-html">
>>> +
>>> + <target name="set-nightly-property">
>>> + <property name="nightly" value="true"/>
>>> </target>
>>> +
>>> + <target name="nightly" depends="set-nightly-property, test, package-
>>> tgz, changes-to-html"/>
>>>
>>> <!-- ==================================================================
>>> -->
>>> <!-- Packages the distribution with zip
>>> -->
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
--
- Mark
http://www.lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
RE: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Uwe Schindler <uw...@thetaphi.de>.
Mike can do this. I have no access. I am not really sure what of this
nightly ant task is still in use, I think it was for the nightly builds
before Hudson.
I wanted to redo that for the new Clover version, to only run tests one time
and so on (LUCENE-1769), but had no time to do it and no access.
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Simon Willnauer [mailto:simon.willnauer@googlemail.com]
> Sent: Tuesday, August 25, 2009 10:57 PM
> To: java-dev@lucene.apache.org
> Subject: Re: svn commit: r807763 - /lucene/java/trunk/build.xml
>
> Uwe, can you configure hudson or who has the power to do so?
> Hudson offers a property field for each Ant Build Step so
> configuration shoul dbe really easy.
>
> simon
>
> On Tue, Aug 25, 2009 at 10:51 PM, Uwe Schindler<uw...@thetaphi.de> wrote:
> > Is the nightly target really run by Hudson? From the logs it looks that
> > Hudson is calling the ant targets directly and not only nightly.
> >
> > I would do it the following way: reconfigure Hudson to pass a -
> Dnightly=true
> > when calling ant.
> >
> > -----
> > Uwe Schindler
> > H.-H.-Meier-Allee 63, D-28213 Bremen
> > http://www.thetaphi.de
> > eMail: uwe@thetaphi.de
> >
> >> -----Original Message-----
> >> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
> >> Sent: Tuesday, August 25, 2009 9:07 PM
> >> To: java-commits@lucene.apache.org
> >> Subject: svn commit: r807763 - /lucene/java/trunk/build.xml
> >>
> >> Author: mikemccand
> >> Date: Tue Aug 25 19:07:16 2009
> >> New Revision: 807763
> >>
> >> URL: http://svn.apache.org/viewvc?rev=807763&view=rev
> >> Log:
> >> LUCENE-1845: set nightly property when nightly target is run
> >>
> >> Modified:
> >> lucene/java/trunk/build.xml
> >>
> >> Modified: lucene/java/trunk/build.xml
> >> URL:
> >>
> http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=807763&r1=807
> >> 762&r2=807763&view=diff
> >>
> ==========================================================================
> >> ====
> >> --- lucene/java/trunk/build.xml (original)
> >> +++ lucene/java/trunk/build.xml Tue Aug 25 19:07:16 2009
> >> @@ -384,9 +384,12 @@
> >> </filterset>
> >> </copy>
> >> </target>
> >> -
> >> - <target name="nightly" depends="test, package-tgz, changes-to-html">
> >> +
> >> + <target name="set-nightly-property">
> >> + <property name="nightly" value="true"/>
> >> </target>
> >> +
> >> + <target name="nightly" depends="set-nightly-property, test, package-
> >> tgz, changes-to-html"/>
> >>
> >> <!--
> ==================================================================
> >> -->
> >> <!-- Packages the distribution with zip
> >> -->
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: java-dev-help@lucene.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Simon Willnauer <si...@googlemail.com>.
Uwe, can you configure hudson or who has the power to do so?
Hudson offers a property field for each Ant Build Step so
configuration shoul dbe really easy.
simon
On Tue, Aug 25, 2009 at 10:51 PM, Uwe Schindler<uw...@thetaphi.de> wrote:
> Is the nightly target really run by Hudson? From the logs it looks that
> Hudson is calling the ant targets directly and not only nightly.
>
> I would do it the following way: reconfigure Hudson to pass a -Dnightly=true
> when calling ant.
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>> -----Original Message-----
>> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
>> Sent: Tuesday, August 25, 2009 9:07 PM
>> To: java-commits@lucene.apache.org
>> Subject: svn commit: r807763 - /lucene/java/trunk/build.xml
>>
>> Author: mikemccand
>> Date: Tue Aug 25 19:07:16 2009
>> New Revision: 807763
>>
>> URL: http://svn.apache.org/viewvc?rev=807763&view=rev
>> Log:
>> LUCENE-1845: set nightly property when nightly target is run
>>
>> Modified:
>> lucene/java/trunk/build.xml
>>
>> Modified: lucene/java/trunk/build.xml
>> URL:
>> http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=807763&r1=807
>> 762&r2=807763&view=diff
>> ==========================================================================
>> ====
>> --- lucene/java/trunk/build.xml (original)
>> +++ lucene/java/trunk/build.xml Tue Aug 25 19:07:16 2009
>> @@ -384,9 +384,12 @@
>> </filterset>
>> </copy>
>> </target>
>> -
>> - <target name="nightly" depends="test, package-tgz, changes-to-html">
>> +
>> + <target name="set-nightly-property">
>> + <property name="nightly" value="true"/>
>> </target>
>> +
>> + <target name="nightly" depends="set-nightly-property, test, package-
>> tgz, changes-to-html"/>
>>
>> <!-- ==================================================================
>> -->
>> <!-- Packages the distribution with zip
>> -->
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
RE: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Uwe Schindler <uw...@thetaphi.de>.
So it is possible by editing this script to pass additional options with -D
to some of the ANT commands.
Thanks for the insight, that also helps me very much with the clover update.
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: Grant Ingersoll [mailto:gsingers@apache.org]
> Sent: Wednesday, August 26, 2009 2:20 PM
> To: java-dev@lucene.apache.org
> Subject: Re: svn commit: r807763 - /lucene/java/trunk/build.xml
>
> Here's what is currently run on Hudson as shell:
>
> set -x
>
> export FORREST_HOME=/export/home/nigel/tools/forrest/latest
>
> ANT_HOME=/export/home/hudson/tools/ant/latest
>
> ARTIFACTS=$WORKSPACE/artifacts
> MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
> TRUNK=$WORKSPACE/trunk
> mkdir -p $ARTIFACTS
> mkdir -p $MAVEN_ARTIFACTS
> cd $TRUNK
>
> echo "Workspace: $WORKSPACE"
>
> # run build
> #$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> # -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
> # release it
> #cp dist/*.tar.gz $ARTIFACTS
>
> #Package the Source
> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> clean package-tgz-src
> # release it
> cp dist/*-src.tar.gz $ARTIFACTS
>
> #Generate the Maven snapshot
> #Update the Version # when doing a release
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=2.9-SNAPSHOT generate-maven-artifacts
> #copy the artifacts to the side so the cron job can publish them
> echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
> cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
> echo "Done Copying Maven Artifacts"
>
> # run build
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
> # release it
> cp dist/*.tar.gz $ARTIFACTS
>
> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> javadocs
>
> #Rerun nightly with clover on
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> -lib /export/home/hudson/tools/clover/latest/lib \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=$BUILD_ID -Drun.clover=true clean nightly
>
> #generate the clover reports
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> -lib /export/home/hudson/tools/clover/latest/lib \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports
>
>
> On Aug 25, 2009, at 7:39 PM, Chris Hostetter wrote:
>
> >
> > : Grant does the cutover to hudson.zones still invoke the
> > nightly.sh? I
> > : thought it did? (But then looking at the console output from the
> > : build, I can't "correlate" it..).
> >
> > nightly.sh is not run, there's a complicated set of shell commands
> > configured in hudson that gets run instead. (why it's not just
> > exec'ing a
> > shellscript in svn isn't clear to me ... but it starts with "set -x"
> > so
> > the build log should make it clear exactly what's running.
> >
> > you can see from that log: the "nightly" ant target is still used.
> >
> >
> >
> > -Hoss
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Mark Miller <ma...@gmail.com>.
Mark Miller wrote:
> Chris Hostetter wrote:
>
>> : FWIW, committers can get Hudson accounts. See
>>
>> are you sure about that? I never understood the reason, but the wiki has
>> always said...
>>
>> "if you are a member of an ASF PMC, get in touch and we'll set you up with
>> an account."
>>
>> : http://wiki.apache.org/general/Hudson. Committers can also get Lucene Zone
>>
>> -Hoss
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>>
> I've seen another top level Apache page somewhere that says you have to
> be PMC to get a Hudson account as well - just don't remember off the top
> of my head where.
>
>
>From an infra request:
unfortunately as http://wiki./apache/.org/general//Hudson/ notes, we're
only giving /accounts/ to PMC members
Kind of funny really - you can muck with the src, but not the daily
build process :)
--
- Mark
http://www.lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Mark Miller <ma...@gmail.com>.
Chris Hostetter wrote:
> : FWIW, committers can get Hudson accounts. See
>
> are you sure about that? I never understood the reason, but the wiki has
> always said...
>
> "if you are a member of an ASF PMC, get in touch and we'll set you up with
> an account."
>
> : http://wiki.apache.org/general/Hudson. Committers can also get Lucene Zone
>
> -Hoss
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
I've seen another top level Apache page somewhere that says you have to
be PMC to get a Hudson account as well - just don't remember off the top
of my head where.
--
- Mark
http://www.lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Chris Hostetter <ho...@fucit.org>.
: FWIW, committers can get Hudson accounts. See
are you sure about that? I never understood the reason, but the wiki has
always said...
"if you are a member of an ASF PMC, get in touch and we'll set you up with
an account."
: http://wiki.apache.org/general/Hudson. Committers can also get Lucene Zone
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Grant Ingersoll <gs...@apache.org>.
publish-maven is run on my cron script on the Hudson zone, where it
copies the maven artifacts off of the Lucene Zone and onto the Hudson
Zone.
FWIW, committers can get Hudson accounts. See http://wiki.apache.org/general/Hudson
. Committers can also get Lucene Zone access to, if it is needed.
I will update the docs.
On Aug 26, 2009, at 8:54 AM, Grant Ingersoll wrote:
> I think pub-maven is still used, but let me check.
>
>
> On Aug 26, 2009, at 8:47 AM, Michael McCandless wrote:
>
>> Thanks Grant.
>>
>> Should we remove https://svn.apache.org/repos/asf/lucene/java/nightly
>> entirely? Ie we are not using any of these files anymore?:
>>
>> README.txt nightly.properties nightly.sh.bak publish-
>> maven.sh
>> nightly.cron nightly.sh
>>
>> Mike
>>
>> On Wed, Aug 26, 2009 at 8:20 AM, Grant
>> Ingersoll<gs...@apache.org> wrote:
>>> Here's what is currently run on Hudson as shell:
>>>
>>> set -x
>>>
>>> export FORREST_HOME=/export/home/nigel/tools/forrest/latest
>>>
>>> ANT_HOME=/export/home/hudson/tools/ant/latest
>>>
>>> ARTIFACTS=$WORKSPACE/artifacts
>>> MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
>>> TRUNK=$WORKSPACE/trunk
>>> mkdir -p $ARTIFACTS
>>> mkdir -p $MAVEN_ARTIFACTS
>>> cd $TRUNK
>>>
>>> echo "Workspace: $WORKSPACE"
>>>
>>> # run build
>>> #$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>>> # -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
>>> # release it
>>> #cp dist/*.tar.gz $ARTIFACTS
>>>
>>> #Package the Source
>>> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
>>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>>> clean package-tgz-src
>>> # release it
>>> cp dist/*-src.tar.gz $ARTIFACTS
>>>
>>> #Generate the Maven snapshot
>>> #Update the Version # when doing a release
>>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
>>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>>> -Dversion=2.9-SNAPSHOT generate-maven-artifacts
>>> #copy the artifacts to the side so the cron job can publish them
>>> echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
>>> cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
>>> echo "Done Copying Maven Artifacts"
>>>
>>> # run build
>>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>>> -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
>>> # release it
>>> cp dist/*.tar.gz $ARTIFACTS
>>>
>>> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
>>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>>> javadocs
>>>
>>> #Rerun nightly with clover on
>>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>>> -lib /export/home/hudson/tools/clover/latest/lib \
>>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>>> -Dversion=$BUILD_ID -Drun.clover=true clean nightly
>>>
>>> #generate the clover reports
>>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>>> -lib /export/home/hudson/tools/clover/latest/lib \
>>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>>> -Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports
>>>
>>>
>>> On Aug 25, 2009, at 7:39 PM, Chris Hostetter wrote:
>>>
>>>>
>>>> : Grant does the cutover to hudson.zones still invoke the
>>>> nightly.sh? I
>>>> : thought it did? (But then looking at the console output from the
>>>> : build, I can't "correlate" it..).
>>>>
>>>> nightly.sh is not run, there's a complicated set of shell commands
>>>> configured in hudson that gets run instead. (why it's not just
>>>> exec'ing a
>>>> shellscript in svn isn't clear to me ... but it starts with "set -
>>>> x" so
>>>> the build log should make it clear exactly what's running.
>>>>
>>>> you can see from that log: the "nightly" ant target is still used.
>>>>
>>>>
>>>>
>>>> -Hoss
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Grant Ingersoll <gs...@apache.org>.
I think pub-maven is still used, but let me check.
On Aug 26, 2009, at 8:47 AM, Michael McCandless wrote:
> Thanks Grant.
>
> Should we remove https://svn.apache.org/repos/asf/lucene/java/nightly
> entirely? Ie we are not using any of these files anymore?:
>
> README.txt nightly.properties nightly.sh.bak publish-
> maven.sh
> nightly.cron nightly.sh
>
> Mike
>
> On Wed, Aug 26, 2009 at 8:20 AM, Grant
> Ingersoll<gs...@apache.org> wrote:
>> Here's what is currently run on Hudson as shell:
>>
>> set -x
>>
>> export FORREST_HOME=/export/home/nigel/tools/forrest/latest
>>
>> ANT_HOME=/export/home/hudson/tools/ant/latest
>>
>> ARTIFACTS=$WORKSPACE/artifacts
>> MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
>> TRUNK=$WORKSPACE/trunk
>> mkdir -p $ARTIFACTS
>> mkdir -p $MAVEN_ARTIFACTS
>> cd $TRUNK
>>
>> echo "Workspace: $WORKSPACE"
>>
>> # run build
>> #$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>> # -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
>> # release it
>> #cp dist/*.tar.gz $ARTIFACTS
>>
>> #Package the Source
>> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>> clean package-tgz-src
>> # release it
>> cp dist/*-src.tar.gz $ARTIFACTS
>>
>> #Generate the Maven snapshot
>> #Update the Version # when doing a release
>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>> -Dversion=2.9-SNAPSHOT generate-maven-artifacts
>> #copy the artifacts to the side so the cron job can publish them
>> echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
>> cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
>> echo "Done Copying Maven Artifacts"
>>
>> # run build
>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>> -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
>> # release it
>> cp dist/*.tar.gz $ARTIFACTS
>>
>> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>> javadocs
>>
>> #Rerun nightly with clover on
>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>> -lib /export/home/hudson/tools/clover/latest/lib \
>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>> -Dversion=$BUILD_ID -Drun.clover=true clean nightly
>>
>> #generate the clover reports
>> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
>> -lib /export/home/hudson/tools/clover/latest/lib \
>> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
>> -Dsvn.exe=/opt/subversion-current/bin/svn \
>> -Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports
>>
>>
>> On Aug 25, 2009, at 7:39 PM, Chris Hostetter wrote:
>>
>>>
>>> : Grant does the cutover to hudson.zones still invoke the
>>> nightly.sh? I
>>> : thought it did? (But then looking at the console output from the
>>> : build, I can't "correlate" it..).
>>>
>>> nightly.sh is not run, there's a complicated set of shell commands
>>> configured in hudson that gets run instead. (why it's not just
>>> exec'ing a
>>> shellscript in svn isn't clear to me ... but it starts with "set -
>>> x" so
>>> the build log should make it clear exactly what's running.
>>>
>>> you can see from that log: the "nightly" ant target is still used.
>>>
>>>
>>>
>>> -Hoss
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-dev-help@lucene.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
--------------------------
Grant Ingersoll
http://www.lucidimagination.com/
Search the Lucene ecosystem (Lucene/Solr/Nutch/Mahout/Tika/Droids)
using Solr/Lucene:
http://www.lucidimagination.com/search
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Michael McCandless <lu...@mikemccandless.com>.
Thanks Grant.
Should we remove https://svn.apache.org/repos/asf/lucene/java/nightly
entirely? Ie we are not using any of these files anymore?:
README.txt nightly.properties nightly.sh.bak publish-maven.sh
nightly.cron nightly.sh
Mike
On Wed, Aug 26, 2009 at 8:20 AM, Grant Ingersoll<gs...@apache.org> wrote:
> Here's what is currently run on Hudson as shell:
>
> set -x
>
> export FORREST_HOME=/export/home/nigel/tools/forrest/latest
>
> ANT_HOME=/export/home/hudson/tools/ant/latest
>
> ARTIFACTS=$WORKSPACE/artifacts
> MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
> TRUNK=$WORKSPACE/trunk
> mkdir -p $ARTIFACTS
> mkdir -p $MAVEN_ARTIFACTS
> cd $TRUNK
>
> echo "Workspace: $WORKSPACE"
>
> # run build
> #$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> # -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
> # release it
> #cp dist/*.tar.gz $ARTIFACTS
>
> #Package the Source
> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> clean package-tgz-src
> # release it
> cp dist/*-src.tar.gz $ARTIFACTS
>
> #Generate the Maven snapshot
> #Update the Version # when doing a release
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=2.9-SNAPSHOT generate-maven-artifacts
> #copy the artifacts to the side so the cron job can publish them
> echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
> cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
> echo "Done Copying Maven Artifacts"
>
> # run build
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
> # release it
> cp dist/*.tar.gz $ARTIFACTS
>
> $ANT_HOME/bin/ant -Dversion=$BUILD_ID \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> javadocs
>
> #Rerun nightly with clover on
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> -lib /export/home/hudson/tools/clover/latest/lib \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=$BUILD_ID -Drun.clover=true clean nightly
>
> #generate the clover reports
> $ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
> -lib /export/home/hudson/tools/clover/latest/lib \
> -Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
> -Dsvn.exe=/opt/subversion-current/bin/svn \
> -Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports
>
>
> On Aug 25, 2009, at 7:39 PM, Chris Hostetter wrote:
>
>>
>> : Grant does the cutover to hudson.zones still invoke the nightly.sh? I
>> : thought it did? (But then looking at the console output from the
>> : build, I can't "correlate" it..).
>>
>> nightly.sh is not run, there's a complicated set of shell commands
>> configured in hudson that gets run instead. (why it's not just exec'ing a
>> shellscript in svn isn't clear to me ... but it starts with "set -x" so
>> the build log should make it clear exactly what's running.
>>
>> you can see from that log: the "nightly" ant target is still used.
>>
>>
>>
>> -Hoss
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Grant Ingersoll <gs...@apache.org>.
Here's what is currently run on Hudson as shell:
set -x
export FORREST_HOME=/export/home/nigel/tools/forrest/latest
ANT_HOME=/export/home/hudson/tools/ant/latest
ARTIFACTS=$WORKSPACE/artifacts
MAVEN_ARTIFACTS=$WORKSPACE/maven_artifacts
TRUNK=$WORKSPACE/trunk
mkdir -p $ARTIFACTS
mkdir -p $MAVEN_ARTIFACTS
cd $TRUNK
echo "Workspace: $WORKSPACE"
# run build
#$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
# -Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
# release it
#cp dist/*.tar.gz $ARTIFACTS
#Package the Source
$ANT_HOME/bin/ant -Dversion=$BUILD_ID \
-Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-Dsvn.exe=/opt/subversion-current/bin/svn \
clean package-tgz-src
# release it
cp dist/*-src.tar.gz $ARTIFACTS
#Generate the Maven snapshot
#Update the Version # when doing a release
$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/maven \
-Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-Dsvn.exe=/opt/subversion-current/bin/svn \
-Dversion=2.9-SNAPSHOT generate-maven-artifacts
#copy the artifacts to the side so the cron job can publish them
echo "Copying Maven artifacts to $MAVEN_ARTIFACTS"
cp -R dist/maven/org/apache/lucene $MAVEN_ARTIFACTS
echo "Done Copying Maven Artifacts"
# run build
$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
-Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-Dsvn.exe=/opt/subversion-current/bin/svn \
-Dversion=$BUILD_ID -Dtest.junit.output.format=xml nightly
# release it
cp dist/*.tar.gz $ARTIFACTS
$ANT_HOME/bin/ant -Dversion=$BUILD_ID \
-Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-Dsvn.exe=/opt/subversion-current/bin/svn \
javadocs
#Rerun nightly with clover on
$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
-lib /export/home/hudson/tools/clover/latest/lib \
-Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-Dsvn.exe=/opt/subversion-current/bin/svn \
-Dversion=$BUILD_ID -Drun.clover=true clean nightly
#generate the clover reports
$ANT_HOME/bin/ant -lib /export/home/nigel/hudsonSupport/junit \
-lib /export/home/hudson/tools/clover/latest/lib \
-Dsvnversion.exe=/opt/subversion-current/bin/svnversion \
-Dsvn.exe=/opt/subversion-current/bin/svn \
-Dversion=$BUILD_ID -Drun.clover=true generate-clover-reports
On Aug 25, 2009, at 7:39 PM, Chris Hostetter wrote:
>
> : Grant does the cutover to hudson.zones still invoke the
> nightly.sh? I
> : thought it did? (But then looking at the console output from the
> : build, I can't "correlate" it..).
>
> nightly.sh is not run, there's a complicated set of shell commands
> configured in hudson that gets run instead. (why it's not just
> exec'ing a
> shellscript in svn isn't clear to me ... but it starts with "set -x"
> so
> the build log should make it clear exactly what's running.
>
> you can see from that log: the "nightly" ant target is still used.
>
>
>
> -Hoss
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Chris Hostetter <ho...@fucit.org>.
: Grant does the cutover to hudson.zones still invoke the nightly.sh? I
: thought it did? (But then looking at the console output from the
: build, I can't "correlate" it..).
nightly.sh is not run, there's a complicated set of shell commands
configured in hudson that gets run instead. (why it's not just exec'ing a
shellscript in svn isn't clear to me ... but it starts with "set -x" so
the build log should make it clear exactly what's running.
you can see from that log: the "nightly" ant target is still used.
-Hoss
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
Re: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Michael McCandless <lu...@mikemccandless.com>.
Grant does the cutover to hudson.zones still invoke the nightly.sh? I
thought it did? (But then looking at the console output from the
build, I can't "correlate" it..).
But... thinking more about it, because the nightly build also packages
up tgz-source and the maven snapshot, those steps may fail anyway, if
we fail to download the contrib/db/bdb JAR, since contrib/db/bdb's
artifacts weren't created. And in fact if they don't fail, we're
creating incomplete nightly artifacts, which is dangerous.
I think I've changed my mind now... we want the build to be brittle to
any failure that would result in incomplete nightly artifacts?
But we should still try to eliminate our dependence on downloading
JARs from external servers.
I'll reopen LUCENE-1845.
Mike
On Tue, Aug 25, 2009 at 4:51 PM, Uwe Schindler<uw...@thetaphi.de> wrote:
> Is the nightly target really run by Hudson? From the logs it looks that
> Hudson is calling the ant targets directly and not only nightly.
>
> I would do it the following way: reconfigure Hudson to pass a -Dnightly=true
> when calling ant.
>
> -----
> Uwe Schindler
> H.-H.-Meier-Allee 63, D-28213 Bremen
> http://www.thetaphi.de
> eMail: uwe@thetaphi.de
>
>> -----Original Message-----
>> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
>> Sent: Tuesday, August 25, 2009 9:07 PM
>> To: java-commits@lucene.apache.org
>> Subject: svn commit: r807763 - /lucene/java/trunk/build.xml
>>
>> Author: mikemccand
>> Date: Tue Aug 25 19:07:16 2009
>> New Revision: 807763
>>
>> URL: http://svn.apache.org/viewvc?rev=807763&view=rev
>> Log:
>> LUCENE-1845: set nightly property when nightly target is run
>>
>> Modified:
>> lucene/java/trunk/build.xml
>>
>> Modified: lucene/java/trunk/build.xml
>> URL:
>> http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=807763&r1=807
>> 762&r2=807763&view=diff
>> ==========================================================================
>> ====
>> --- lucene/java/trunk/build.xml (original)
>> +++ lucene/java/trunk/build.xml Tue Aug 25 19:07:16 2009
>> @@ -384,9 +384,12 @@
>> </filterset>
>> </copy>
>> </target>
>> -
>> - <target name="nightly" depends="test, package-tgz, changes-to-html">
>> +
>> + <target name="set-nightly-property">
>> + <property name="nightly" value="true"/>
>> </target>
>> +
>> + <target name="nightly" depends="set-nightly-property, test, package-
>> tgz, changes-to-html"/>
>>
>> <!-- ==================================================================
>> -->
>> <!-- Packages the distribution with zip
>> -->
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org
RE: svn commit: r807763 - /lucene/java/trunk/build.xml
Posted by Uwe Schindler <uw...@thetaphi.de>.
Is the nightly target really run by Hudson? From the logs it looks that
Hudson is calling the ant targets directly and not only nightly.
I would do it the following way: reconfigure Hudson to pass a -Dnightly=true
when calling ant.
-----
Uwe Schindler
H.-H.-Meier-Allee 63, D-28213 Bremen
http://www.thetaphi.de
eMail: uwe@thetaphi.de
> -----Original Message-----
> From: mikemccand@apache.org [mailto:mikemccand@apache.org]
> Sent: Tuesday, August 25, 2009 9:07 PM
> To: java-commits@lucene.apache.org
> Subject: svn commit: r807763 - /lucene/java/trunk/build.xml
>
> Author: mikemccand
> Date: Tue Aug 25 19:07:16 2009
> New Revision: 807763
>
> URL: http://svn.apache.org/viewvc?rev=807763&view=rev
> Log:
> LUCENE-1845: set nightly property when nightly target is run
>
> Modified:
> lucene/java/trunk/build.xml
>
> Modified: lucene/java/trunk/build.xml
> URL:
> http://svn.apache.org/viewvc/lucene/java/trunk/build.xml?rev=807763&r1=807
> 762&r2=807763&view=diff
> ==========================================================================
> ====
> --- lucene/java/trunk/build.xml (original)
> +++ lucene/java/trunk/build.xml Tue Aug 25 19:07:16 2009
> @@ -384,9 +384,12 @@
> </filterset>
> </copy>
> </target>
> -
> - <target name="nightly" depends="test, package-tgz, changes-to-html">
> +
> + <target name="set-nightly-property">
> + <property name="nightly" value="true"/>
> </target>
> +
> + <target name="nightly" depends="set-nightly-property, test, package-
> tgz, changes-to-html"/>
>
> <!-- ==================================================================
> -->
> <!-- Packages the distribution with zip
> -->
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org