nemccarthy / stash-pullrequest-builder-plugin

A Jenkins plugin for Building Stash Pull Requests
https://wiki.jenkins-ci.org/display/JENKINS/Stash+pullrequest+builder+plugin
Other
64 stars 130 forks source link

need to build each PR into a seperate jenkins workspace subfolder is this possible? #50

Closed timomayer closed 8 years ago

timomayer commented 8 years ago

first of all thanks for the great plugin. i need to build each PR into a seperate jenkins workspace subfolder is this possible?

nemccarthy commented 8 years ago

Should be possible. Could you pass in a environment variable to do this? How do you imagine this would work. We added parameters support in 1.4.1 which if you manually kick off the PR would allow you to build it in a folder of your choosing. You could always use the SHA of the commit hash of the PR and make this the folder name? Its exposed as a variable you can use in your jenkins jobs, would that work?

nemccarthy commented 8 years ago

Other option would be to use the from or to branch name. This would be super simple as its exposed an an env var