3 Replies Last post: Feb 8, 2010 5:21 PM by Pavel Sher  
Gabriel Dogaru Newbie 13 posts since
Aug 24, 2009
Currently Being Moderated

Feb 8, 2010 4:25 PM

Unable to get the autoincrementer plugin working

Hi

I have installed the autoincrementer plugin as it is described on the webpage.

I modified the   to %autoinc.somevalue% ,  run the buildbut the build number doesn't get populated. It becomes %autoinc.somevalue%.

I have tried different combinations and adding the variable to the properties file and still couldn't get it to work. (ps:  on the website the prop. file is said to be autoinc.properties but it actually is autoincrementer.properties)

 

 

Any ideas greatly appreciated

 

I am using TC 4.5.4

Pavel Sher JetBrains 2,148 posts since
Mar 6, 2008
Currently Being Moderated
Feb 8, 2010 4:31 PM in response to: Gabriel Dogaru
Re: Unable to get the autoincrementer plugin working

This plugin supports TeamCity 5.0 and higher. It uses some new API and will not work (without modification) with 4.5.

Pavel Sher JetBrains 2,148 posts since
Mar 6, 2008
Currently Being Moderated
Feb 8, 2010 5:21 PM in response to: Gabriel Dogaru
Re: Unable to get the autoincrementer plugin working

This may not be easy because plugin uses new API which is not available in 4.5.

In 4.5 if you specify reference to unknown parameter (%autoinc.param%) build won't start because this parameter will be converted to so called implicit requirement (i.e. it should be defined somewhere). In 5.0 a special extension can be written which will provide such parameters.

 

Also %autoinc.param% is a reference to configuration parameter, but this type of parameters is not supported by 4.5 too (configuration parameters are not passed to a build).

 

Probably, plugin can be tweaked to work in 4.5, for example, instead of %autoinc.param% users can specify %system.autoinc.param% and add build parameter with some rudimentary value in configuration settings. Then plugin can provide correct values for such properties in fixRunBuildParameters method. Source code of the plugin is available, and you can obtain it from the Subversion repository: http://svn.jetbrains.org/teamcity/plugins/autoincrementer/trunk/

More Like This

  • Retrieving data ...