Cc.net dynamic parameters in the publisher block

I use CC.Net to run the .exe file after the project is complete and need to pass the project name, publish the date / time and user on the command line as parameters for the .exe. However, I cannot get cc.net to recognize these dynamic properties and replace them with the correct values.

<publishers><exec executable="C:\MyApp.exe"></exec><buildArgs>"$[$CCNetProject]" "$[$CCNetBuildDate]" "$[$CCNetBuildTime]" "$[$CCNetUser]"</buildArgs><buildTimeoutSeconds>30</buildTimeoutSeconds></publishers> 
+4
source share
2 answers

The correct syntax for properties in the ccnet configuration is $ [CCNetProject]

+1
source

I believe the correct syntax for properties in the ccnet configuration is:

 $[CCNetProject] 

Instead

 $[$CCNetProject] 
-1
source

Source: https://habr.com/ru/post/1312951/


All Articles