asp.net - teamcity dynamically add or change parameter in build step -


I am trying to build / test a set of branches within a main folder to use teamcity So, I set up a main folder to set up a configurable configuration which includes several branches of the same project, once with a new commitment to those branches, the teamcyt to generate some parameters In the first build phase a .b At file call, then the branch URL whose new commitment is made, then only compile the unit test in that branch.

My problem is that I do not know how to pass that BRT file by passing that BRT file next to the next, in the command line runner, by using the following statement, in this configuration parameter Have to set up. TeamCity [Set Pirator name = 'Subpath' value = 'getsubpath.bat% otherparameter%'] Unfortunately there is no error in this code and the new parameter name 'Subpath' Is not set.

Is it wrong to use this 'setParameter' statement? Or this command line is not available in the runner. Anyone can give example ## TeamCity [Set Pirator ...] or some idea about this scenario ??

To your question, I believe that you have a VCS trigger to fire a build on the new commitment are using it. In this case you can use the already defined% teamcity.build.branch% variable, which will give you the branch that will trigger the build. Configure your branch specification in the VCS settings, and branch selection in the branch configuration to select the branches in the vcs trigger

If you do not want to use this solution , Then you should echo out the line written in your bat, which produces the URI: Echo "## TeamCity [Set Pirator Name = 'Subpath' Value = '% variableContainsTheURI%']" < P> said 'Subpath' a TeamCity variable I'm not sure that you can use the configuration parameters. If this is not working, then just use TeamCity Environment variables.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -