|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
Not getting "svnrevision" property in builderHi,
I am using CruiseControl 2.7.2 on Windows XP. I want to get "${svnrevision}" property in my ant builder, but CC is not passing this property. I am getting all other properties such as label as shown below. INFO] Executing tasks [echo] Label is build.1, svnrevision is ${svnrevision} [echo] cvstimestamp is 2009-10-30_06:54:25_GMT [echo] cctimestamp is 20091030025425 [echo] cclastgoodbuildtimestamp is 20091030000000 [echo] cclastbuildtimestamp is 20091030000000 [echo] lastbuildsuccessful is false Please correct and help me to resolve this problem. Here are the details in config file and maven script. CC-config.xml: ... <cruisecontrol> ..... ..... <project name="hello" buildafterfailed="false"> <bootstrappers> <currentbuildstatusbootstrapper file="logs/hello/buildstatus.txt"/> </bootstrappers> <schedule interval="1800"> <maven2 mvnhome="C:/apache-maven-2.0.9" pomfile="projects/${project.name}/pom.xml" goal="package" /> </schedule> <bootstrappers> <svnbootstrapper localWorkingCopy="projects/${project.name}" username="confluence" password="asd"/> </bootstrappers> <modificationset quietperiod="30"> <svn username="confluence" password="asd" localWorkingCopy="projects/${project.name}"/> </modificationset> ..... <publishers> <currentbuildstatuspublisher file="logs/hello/buildstatus.txt" /> </publishers> </project> </cruisecontrol> -------------------- pom.xml (builder file) <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> ........ ........ <build> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>package</phase> <configuration> <tasks> <echo message="Label is ${label}, svnrevision is ${svnrevision}"/> <echo message="cvstimestamp is ${cvstimestamp}"/> <echo message="cctimestamp is ${cctimestamp}"/> <echo message="cclastgoodbuildtimestamp is ${cclastgoodbuildtimestamp}"/> <echo message="cclastbuildtimestamp is ${cclastbuildtimestamp}"/> <echo message="lastbuildsuccessful is ${lastbuildsuccessful}"/> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> |
| Free embeddable forum powered by Nabble | Forum Help |