You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Peter von Kaenel <Pe...@harmonicinc.com> on 2009/01/19 12:10:50 UTC
Automated nightly build ... only when updated
Hi,
I have a very simple nightly build script that performs an update,
rebuilds everything, and then emails out a report with the build
results. This runs every night which is a bit annoying if the project
has not been updated. Is there way to build a script that only performs
the build and emails the result if there has been an update? I did a
quick check on svn return codes, and could not find anything useful.
Any guidance would be appreciated.
Thanks,
Peter
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1034437
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Automated nightly build ... only when updated
Posted by Peter von Kaenel <Pe...@harmonicinc.com>.
Thanks a lot for all of the suggestions, the svnversion solution seems
to have done the trick.
Peter
From: DW Dennis Wheeler [mailto:dwheeler@ag.com]
Sent: Tuesday, January 27, 2009 4:31 PM
To: Peter von Kaenel
Cc: users@subversion.tigris.org
Subject: RE: Automated nightly build ... only when updated
capture the output of 'svnversion -c' before and after your 'svn update'
if they are the same, then no need to build.
________________________________
From: Peter von Kaenel [mailto:Peter.vonKaenel@harmonicinc.com]
Sent: Monday, January 19, 2009 4:11 AM
To: users@subversion.tigris.org
Subject: Automated nightly build ... only when updated
Hi,
I have a very simple nightly build script that performs an
update, rebuilds everything, and then emails out a report with the build
results. This runs every night which is a bit annoying if the project
has not been updated. Is there way to build a script that only performs
the build and emails the result if there has been an update? I did a
quick check on svn return codes, and could not find anything useful.
Any guidance would be appreciated.
Thanks,
Peter
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1063334
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Automated nightly build ... only when updated
Posted by DW Dennis Wheeler <dw...@ag.com>.
capture the output of 'svnversion -c' before and after your 'svn update'
if they are the same, then no need to build.
________________________________
From: Peter von Kaenel [mailto:Peter.vonKaenel@harmonicinc.com]
Sent: Monday, January 19, 2009 4:11 AM
To: users@subversion.tigris.org
Subject: Automated nightly build ... only when updated
Hi,
I have a very simple nightly build script that performs an
update, rebuilds everything, and then emails out a report with the build
results. This runs every night which is a bit annoying if the project
has not been updated. Is there way to build a script that only performs
the build and emails the result if there has been an update? I did a
quick check on svn return codes, and could not find anything useful.
Any guidance would be appreciated.
Thanks,
Peter
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060362
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Automated nightly build ... only when updated
Posted by Olivier Sannier <ob...@free.fr>.
Peter von Kaenel wrote:
>
>
>
> Hi,
>
>
>
> I have a very simple nightly build script that performs an update,
> rebuilds everything, and then emails out a report with the build
> results. This runs every night which is a bit annoying if the project
> has not been updated. Is there way to build a script that only
> performs the build and emails the result if there has been an update?
> I did a quick check on svn return codes, and could not find anything
> useful. Any guidance would be appreciated.
>
http://svnbook.red-bean.com/en/1.5/svn.ref.svn.c.status.html
Look for the |--show-updates option, it should help you out.
|
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060423
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Automated nightly build ... only when updated
Posted by Jorge M <jm...@e-dialog.com>.
If you want a more robust solution than a script, you may want to take a
look at Hudson.
https://hudson.dev.java.net/
-Jorge
________________________________
From: Bob Archer [mailto:Bob.Archer@amsi.com]
Sent: Tuesday, January 27, 2009 4:47 PM
To: Peter von Kaenel; users@subversion.tigris.org
Subject: RE: Automated nightly build ... only when updated
The easiest option would be to use something like Cruise Control.Net to
run your build script. You can tell it to not run if there have been no
changes since the last run.
For a standalone build script you should be able to parse the output of
the svn update command. If there was nothing updated you won't get any
files listed as updated.
Bob
________________________________
From: Peter von Kaenel [mailto:Peter.vonKaenel@harmonicinc.com]
Sent: Monday, January 19, 2009 7:11 AM
To: users@subversion.tigris.org
Subject: Automated nightly build ... only when updated
Hi,
I have a very simple nightly build script that performs an update,
rebuilds everything, and then emails out a report with the build
results. This runs every night which is a bit annoying if the project
has not been updated. Is there way to build a script that only performs
the build and emails the result if there has been an update? I did a
quick check on svn return codes, and could not find anything useful.
Any guidance would be appreciated.
Thanks,
Peter
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060628
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Automated nightly build ... only when updated
Posted by Bob Archer <Bo...@amsi.com>.
The easiest option would be to use something like Cruise Control.Net to
run your build script. You can tell it to not run if there have been no
changes since the last run.
For a standalone build script you should be able to parse the output of
the svn update command. If there was nothing updated you won't get any
files listed as updated.
Bob
________________________________
From: Peter von Kaenel [mailto:Peter.vonKaenel@harmonicinc.com]
Sent: Monday, January 19, 2009 7:11 AM
To: users@subversion.tigris.org
Subject: Automated nightly build ... only when updated
Hi,
I have a very simple nightly build script that performs an update,
rebuilds everything, and then emails out a report with the build
results. This runs every night which is a bit annoying if the project
has not been updated. Is there way to build a script that only performs
the build and emails the result if there has been an update? I did a
quick check on svn return codes, and could not find anything useful.
Any guidance would be appreciated.
Thanks,
Peter
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060446
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Automated nightly build ... only when updated
Posted by "Reedick, Andrew" <jr...@ATT.COM>.
Wouldn't "svn info svn://server/repos/some/dir" do the trick? Just
check the "Last changed Rev" or "Last Changed Date" values. IIRC, the
"last changed" fields are updated whenever anything in the subtree is
updated.
From: Peter von Kaenel [mailto:Peter.vonKaenel@harmonicinc.com]
Sent: Monday, January 19, 2009 7:11 AM
To: users@subversion.tigris.org
Subject: Automated nightly build ... only when updated
Hi,
I have a very simple nightly build script that performs an update,
rebuilds everything, and then emails out a report with the build
results. This runs every night which is a bit annoying if the project
has not been updated. Is there way to build a script that only performs
the build and emails the result if there has been an update? I did a
quick check on svn return codes, and could not find anything useful.
Any guidance would be appreciated.
Thanks,
Peter
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060612
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Automated nightly build ... only when updated
Posted by Jim Hanley <jh...@DGtlRift.com>.
We use gmake with GMSL and I have a set of macro functions that send
out an email summery to a set of users only if there were dependencies
out of date that triggers targets to be rebuilt, and if build fails it
will attempt to figure out what dependencies triggered the target to
be rebuilt and from that who possibly broke it based on check-in
history.
Quoting Peter von Kaenel <Pe...@harmonicinc.com>:
> Hi,
>
> I have a very simple nightly build script that performs an update,
> rebuilds everything, and then emails out a report with the build
> results. This runs every night which is a bit annoying if the project
> has not been updated. Is there way to build a script that only performs
> the build and emails the result if there has been an update? I did a
> quick check on svn return codes, and could not find anything useful.
> Any guidance would be appreciated.
>
>
>
> Thanks,
>
> Peter
>
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1034437
>
> To unsubscribe from this discussion, e-mail:
> [users-unsubscribe@subversion.tigris.org].
Re: Automated nightly build ... only when updated
Posted by Luke Imhoff <lu...@cray.com>.
You could have the nightly build script run under the control of a
daemon that listens for events from a post-commit script.
On Mon, 2009-01-19 at 04:10 -0800, Peter von Kaenel wrote:
>
>
> Hi,
>
>
>
> I have a very simple nightly build script that performs an update,
> rebuilds everything, and then emails out a report with the build
> results. This runs every night which is a bit annoying if the project
> has not been updated. Is there way to build a script that only
> performs the build and emails the result if there has been an update?
> I did a quick check on svn return codes, and could not find anything
> useful. Any guidance would be appreciated.
>
>
>
> Thanks,
>
> Peter
>
>
>
>
>
>
>
>
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060424
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Automated nightly build ... only when updated
Posted by Parashkev Penev <pa...@gmail.com>.
Hi,
Here are my 2 cents.
I have a custom build system and doxygen generator that are supposed
to run after every commit. My solution was/still is the use of a post-
commit hook that "touches" (creates) a file. I have then running in a
cronjob: (as logic only)
if lock_file is there
exit "`Another instance is building right now"
else
if touch_file is there
remove touch file
run build scripts
end
remove lock_file
end
The use of a "lock_file" I found to be a requirement since building
the code may take up to 5 minutes sometimes, and my cronjob runs every
minute or so.
This solution is probably not as nice as a continuous build tool
(CruiseControl), but with a custom build system it works pretty well.
Br
Paro
On Jan 28, 2009, at 0:01 , Hari Kodungallur wrote:
>
> On Mon, Jan 19, 2009 at 4:10 AM, Peter von Kaenel <Peter.vonKaenel@harmonicinc.com
> > wrote:
>
> Hi,
>
>
> I have a very simple nightly build script that performs an update,
> rebuilds everything, and then emails out a report with the build
> results. This runs every night which is a bit annoying if the
> project has not been updated. Is there way to build a script that
> only performs the build and emails the result if there has been an
> update? I did a quick check on svn return codes, and could not find
> anything useful. Any guidance would be appreciated.
>
>
> Echoing what others have said, you could potentially use a
> continuous build tool like CruiseControl or Hudson. Or even you
> could just use "svnversion" after each svn update and see if there
> is any change.
>
> Having said that, I think running the build nightly (even if nothing
> changes) is not a bad practice. You could potentially build
> incrementally all day and at night do a clean build for example..
>
> regards,
> -Hari
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060853
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Automated nightly build ... only when updated
Posted by Hari Kodungallur <hk...@gmail.com>.
On Mon, Jan 19, 2009 at 4:10 AM, Peter von Kaenel <
Peter.vonKaenel@harmonicinc.com> wrote:
>
>
> Hi,
>
>
>
> I have a very simple nightly build script that performs an update, rebuilds
> everything, and then emails out a report with the build results. This runs
> every night which is a bit annoying if the project has not been updated. Is
> there way to build a script that only performs the build and emails the
> result if there has been an update? I did a quick check on svn return
> codes, and could not find anything useful. Any guidance would be
> appreciated.
>
Echoing what others have said, you could potentially use a continuous build
tool like CruiseControl or Hudson. Or even you could just use "svnversion"
after each svn update and see if there is any change.
Having said that, I think running the build nightly (even if nothing
changes) is not a bad practice. You could potentially build incrementally
all day and at night do a clean build for example..
regards,
-Hari
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1060663
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].