|
||||||||||||||
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) Thu, 26 Jul 2012 15:09:30 -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)
I have this groovy script:
if (BUILD_TYPE.equals('Trunk')) { def map = [SVN_REPO_PATH: "trunk/ConfigManagement"]; return map; }
if (BUILD_TYPE.equals('Branches')) {
def map = [SVN_REPO_PATH: "branches/${SVN_BRANCH}"]; return map;
}
if (BUILD_TYPE.equals('Tags')) {
def map = [SVN_REPO_PATH: "branches/${SVN_TAG}"]; return map;
}
Where BUILD_TYPE is a CHOICE type user parameter which has Trunk, Branches, Tags in the drop down.
The build keeps failing with,
[EnvInject] - [ERROR] - SEVERE ERROR occurs: No such property: BUILD_TYPE for class: Script1
Finished: FAILURE
Please Help![]()