how to gather user input when build is run?

I have a customer that wants to swtich from Continuum to TeamCity.

The one issue they have is how to collect user input when running the release build. Here is what I mean by this:

With Continuum, the customer has a build configuration called "release". They manually trigger this build, it is not automatically triggered. When they trigger the build through the Continuum web page, they are displayed a simple HTML form with some fields. They fill out the form and click Submit. Then the page takes the field data and passes as enviornment variables or build parameters to the release build.

Is it possible in TeamCity to gather user input and convert it into build parameters?

Thanks,
Hamlet

4 comments
Comment actions Permalink

Hamlet,

This is easily possible via Custom Build Run dialog (ellipsis on the Run... button).

The only case is that so far there is no way to popup the dialog on usual Run button click (see/vote for TW-7652 ). However, TeamCIty 7.0 (planned for first quarter of 2012) is likely to have the feature.

0
Comment actions Permalink

Hi Yegor,

I found this solution, but I'm not sure it quite meets my needs. I need to allow a user to input username/password for a database that is being deployed to. If I use Custom Build Run dialog and configure the parameters, this input is in turn displayed on the Build Parameter tab of the build. I'm sure you can understand that this wouldn't be a secure way of handling this input.

Is there a way to prevent the build parameter from displaying when it's input? Or another way of prompting the user for sensitive information when a build is started?

Thanks,
Scott

0
Comment actions Permalink

Hi

This is a feature described in TW-759, please vote.
There are a couple of workarounds described in this thread.

Michael

0
Comment actions Permalink

Thanks Michael,

I have voted for the issue and will suggest other developers here will do the same. Our current work-around is to use a properties file on the file system that we pull into the build for development and test systems. We're doubtful that our DBAs will be comfortable with creating the same "super-user" account that we have in development, so this likely won't work for production. I may be able to come up with something a little better, but TW-759 would be perfect!

Thanks for your help!

0

Please sign in to leave a comment.