|
||||||||
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
[JIRA] (JENKINS-13119) How can I set an environment variable based on value of user passed parameter?
anup_ach...@hotmail.com (JIRA) Fri, 27 Jul 2012 08:23:35 -0700
- [JIRA] (JENKINS-13119) How can I set an... anup_ach...@hotmail.com (JIRA)
- [JIRA] (JENKINS-13119) How can I s... anup_ach...@hotmail.com (JIRA)
- [JIRA] (JENKINS-13119) How can I s... gregory.boissi...@gmail.com (JIRA)
- [JIRA] (JENKINS-13119) How can I s... anup_ach...@hotmail.com (JIRA)
- [JIRA] (JENKINS-13119) How can I s... anup_ach...@hotmail.com (JIRA)
- [JIRA] (JENKINS-13119) How can I s... gregory.boissi...@gmail.com (JIRA)
Problem solved...got rid of curly braces around SVN_BRANCH and SVN_TAG. However its weird that I still has to use the $ sign in front of it but I have to use BUILD_TYPE without the preceding $.
if ("Trunk".equals(BUILD_TYPE)) { def map = [SVN_REPO_PATH: "trunk/ConfigManagement"]; return map }
if ("Branches".equals(BUILD_TYPE)) { def map = [SVN_REPO_PATH: "branches/$SVN_BRANCH"]; return map }
if ("Tags".equals(BUILD_TYPE)) { def map = [SVN_REPO_PATH: "tags/$SVN_TAG"]; return map }