PropertiesProcessor.process

In the documentation for jetbrains.buildServer.serverSide.PropertiesProcessor, it states: "Properties map passed as argument can be verified or modified by the processor". However, when I try to add a value to the Map passed in as the parameter, I get an exception:

java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableMap.put(Unknown Source)
at scaleform.teamcity.commandline.server.CLPropertyProcessor.process(CLPropertyProcessor.java:50)
...


Am I missing something?

Thanks,
Bart

2 comments
Comment actions Permalink

I found out that I can accomplish what I'd like by using a ParametersPreprocessor extension instead. It is actually closer to what I was going for, because I would rather have the properties modified when the build is run, rather than when the build parameters are saved.

0
Comment actions Permalink

Sorry for delay, yes ParametersPreprocessoris the way to go if you have single build step builds (TeamCity versions < 6.0). Since version 6.0 you should use BuildStartContextProcessor extension.

0

Please sign in to leave a comment.