<< Back to previous view

[QB-3142] Variable prompt not running on Agent
Created: 27/Feb/18  Updated: 27/Feb/18

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 7.0.31
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Martin Falkner Assigned To: Robin Shen
Resolution: Won't Fix Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown
Environment: QuickBuild Server with connected agent.
All on Windows 7 64-bit.


 Description   
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:
${groovy:
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.



 Comments   
Comment by 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.
Generated at Thu Apr 25 03:38:02 UTC 2024 using JIRA 189.