Re: using ${svnrevision} in shedule

Daniel Tihelka <[email protected]>
Newsgroups gmane.comp.java.cruise-control.user
Organization KKY
Message-ID <[email protected]>
Hallo. No idea, please?
Dan

On Monday 08 February 2010 13:50:23 Daniel Tihelka wrote:
> Hallo everybody.
> 
> I have used ${svnrevision} in our cruisecontrol configuration, more
>  specifically in <shedule /> section as:
> 
> <schedule interval="1000" >
>   <composite>
> 
>     ...
> 
>     <!-- Create the file holding current SVN revision. It is actually
>  command:
> 
>           awk 'BEGIN{ print "svnrevision.artic_library = 1234"
> 
> >"dist_1234/svn.revnum" }'
> 
>     -->
>     <exec  command="awk" args="'BEGIN{ print &quot;
> ${svnrevision.artic_library} = ${svnrevision}&quot; >&quot;
> ${dist.dir}_${svnrevision}/svn.revnum&quot; }'" />
> 
> 
>   </composite>
> </schedule>
> 
> which worked for some time. Mysteriously, it started to fail with message:
> 
> awk: fatal: can't redirect to
> `/var/spool/cruisecontrol/dist_${svnrevision}/svn.revnum' (No such file or
> directory)
> 
> 
> It seems that ${svnrevision} property is not "resolved" before the awk
>  command is set. Well, I know that the property is not defined when I force
>  the build manually (and I understand why it is so), but it is not set even
>  when there is a change in SVN repository (detected correctly by CC)!
> 
> I have tried to delete all *.ser files and to restart CC, but it did not
>  help. I don't understand, why it stopped working, as that really worked
>  before. And I did not reinstall cruisecontrol since!
> 
> 
> Thank you very much for your advice,
> Dan
> 
> 
> 
> P.S. I have cruisecontrol-2.8.1-25.1 installed from RPM taken from
> http://download.opensuse.org/repositories/home:/andtecheu/openSUSE_11.1
>

------------------------------------------------------------------------------
Download Intel&reg; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs 
proactively, and fine-tune applications for parallel performance. 
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Cruisecontrol-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEABECAAYFAkt9En8ACgkQuYlVhxo/P1HbRgCfaPq2qzMtC08/TVKjte0bGHbj
NBYAn1y2gk8FlW2UFLvJ7JwAah24uinL
=+ra8
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.