ikeike443 / HudsonPluginForPlay

Jenkins plugin for Play! framework. This is trunk of jenkins-ci/play-plugin.
http://wiki.jenkins-ci.org/display/JENKINS/play-plugin
33 stars 28 forks source link

Support build parameters in play commands #20

Closed cescoffier closed 13 years ago

cescoffier commented 13 years ago

The plugin does not yet support build parameters.

For example, let's imagine we want to build a module (build-module) but the version is defined in the build configuration (in jenkins) and configured when we trigger the job: So we have a build parameter 'version' and the play command is: build-module --require=1.2.2 --version=${version}

Unfortunately, right now, the ${version} variable is not substituted with the configured value.

ikeike443 commented 13 years ago

You can configure the ${version} variable at job property and set a value before kicking job, I think.

cescoffier commented 13 years ago

Hi,

Yes you can (and it would be good BTW), but it's more generic like that. You can have any variable you want. (did you check the code I pushed ?)

ikeike443 commented 13 years ago

Yes I've checked.
What I wondered about is your saying "Unfortunately, right now, the ${version} variable is not substituted with the configured value.".

Ah.. Did you say, "My code enables to substitute a configured value, so I sent this pull request" ? If so, it makes sense.

Anyway, thank you very much for your pull request.

cescoffier commented 13 years ago

Hi,

Yes, any configured value will be substituted. This is quite generic. So ${version} is just an example. Thanks to have integrated the pull request.