Dependency Parameters

I have 2 build projects.  The first build project writes a service message from a java task definition.
System.out.println("##teamcity[setParameter name='smPreproductionTag' value='" + tag + "']");
Project one has also defined a configuration parameter called smPreproductionTag.  It does seem to update a parameter but not under dep.bt45.smPreproductionTag.  It just says smPreproductionTag.

Project 2 has a snapshot dependency on Project 1.  It tries to use %dep.bt45.smPreproductionTag% which it can find but nothing is populated.

Any thoughts of what I am doing wrong?

PC

10 comments
Comment actions Permalink

Any help would be greatly appreciated.

0
Comment actions Permalink

I still need assistance on this.  in a java task def I do a System.out.println to write out the service message to update a build configuration parameter.  I then want to use that parameter in a dependent build.



Attachment(s):
dependent_config_using_parameter.png
actual_parameter_on_agent.png
user_defined_parameter.png
service_message_in_java_code.png
0
Comment actions Permalink

FYI, I asked about the responsiveness we should expect and have received no reply.

http://devnet.jetbrains.net/message/5448703#5448703

0
Comment actions Permalink

It is hit or miss so I am not sure how to resolve this issue.  I have gotten good response in the past but it has been a while since I posted.

0
Comment actions Permalink

Yegor? Sergey? Pavel?

Thoughts?

0
Comment actions Permalink

Hi Paul

I'm sorry for the delay.
The issue was caused by snapshot dependencies - this kind of link between build configurations locks source revisions for all builds in the build chain.
VCS settings for Project2 configuration are resolved and fixed even before Project1 build starts, so later changes to the parameter are ignored.

If you're going to switch source branches dynamicaly, and don't need to synchronize source revisions, then you do not need to use snapshot dependencies.
Try to link the configurations by Finish Build Trigger.

Michael

0
Comment actions Permalink

Hello Paul,

Sorry again for the delay in replying.

References to dep. parameters provided by builds are not supported in VCS settings at this time. However, they should be passed OK into the builds.

0
Comment actions Permalink

Will there be an update to 6.5.x that will alow dependecy parapeters to be passed into vcs settings.  I have a build that tags all of our production java code to one common tag and on want build 2 to build the code just tagged but I need to pass the dependent parameters into vcs settings.

0

Please sign in to leave a comment.