using ${svnrevision} in shedule
Daniel Tihelka <[email protected]>
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Organization | KKY |
| Message-ID | <[email protected]> |
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 "
${svnrevision.artic_library} = ${svnrevision}" >"
${dist.dir}_${svnrevision}/svn.revnum" }'" />
</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
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
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) iEYEABECAAYFAktwCJoACgkQuYlVhxo/P1E1aACeJyi8agqhf8SWKYUqmAnn9LLb C8oAoJBrJrsLfcqRYj5RToVMJA9tf9lE =SqQE -----END PGP SIGNATURE-----