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

Change By: Anup Singh (26/Jul/12 10:08 PM)
Resolution: Fixed
Status: Resolved Reopened
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

Reply via email to