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

Key: QB-3142
Type: Bug Bug
Status: Closed Closed
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: Martin Falkner
Votes: 0
Watchers: 0

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

Variable prompt not running on Agent

Created: 27/Feb/18 03:16 PM   Updated: 27/Feb/18 11:26 PM
Component/s: None
Affects Version/s: 7.0.31
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
QuickBuild Server with connected agent.
All on Windows 7 64-bit.

 Description  « Hide
I've got a configuration that runs on a different machine running QuickBuild Agent.
The master step of this configuration is already configured to run on the agent.
This configuration contains a variable that prompts the user to select a value out of a list.
This list is populated by a small script that collect some information on the remote computer (agent).
However, it turns out, that this script is running on the QuickBuild server instead of the agent and therefore is not successful.

The script looks like this:
def file = new File(vars.get("WorkingFolder").toString())
"git tag -l build/*".execute(null, file).in.text

There will be an error message, as this "WorkingFolder" only exists on the agent but not the server.

 All   Comments   Work Log   Change History      Sort Order:
Robin Shen [27/Feb/18 11:26 PM]
This is by design, variable prompting logic always runs on server as at this time the build is not started yet.