History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1263
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Robin Shen
Reporter: Jonathan Baker
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

No good error message when a variable value cannot be calculated

Created: 30/Apr/12 09:09 PM   Updated: 30/Apr/12 09:09 PM
Component/s: None
Affects Version/s: 4.0.33
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
We are using maven for our builds, so in an effort to remove duplication, I created some variables that would set the value of a project's maven groupId and artifactId's like this:

${groovy:new XmlSlurper().parse("${vars.getValue('subversionCheckoutUrl')\}/pom.xml").groupId.text()}
${groovy:new XmlSlurper().parse("${vars.getValue('subversionCheckoutUrl')\}/pom.xml").artifactId.text()}

Because of our setup, the network administrators do not want the subversion repository available from the hosts on which our agents are running. The groupId and artifactId variables are used in creating the value for a variable named commandScriptUrl which was being used to get the value for the deployRoot.

We easily solved our problem by hard-coding the value for groupId and artifactId in the variables. It meant that we had to retain that data in two places, but its not terrible because those two values should almost never change.

With all of that being said, it would be nice if the QB server would log what variables it is unable to determine values for. When our build completed, the variables tab showed an empty value for deployRoot, but had no mention of groupId or artifactId. Nor was there any mention in either the server or agent log about the groupId or artifactId variables. If the server is unable to calculate a specific variable, then an error message should be logged explaining that. It would also be nice if on the variables page for a specific build instance if the error message was listed beside the variable name.

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.