New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI-based programs are not shown up after executed by a Custom Command task on Windows Agents #9990
Comments
Did you install the agent via the installer, and is it running as a service? If so, the agent will probably be running as If you want to see a UI while jobs/tasks are running, you will probably need the agent to be running as your current user. To do so, you could either
|
Yes, @chadlwilson's response is right. There is some documentation mentioning this, but it is likely out of date (Windows menus, startup etc): https://docs.gocd.org/current/advanced_usage/ui_testing.html I would suggest going with the second option as well. |
I made it work as expected. |
For those who are curious to know what the root problem is, read the following references: |
Issue Type
Summary
I have a command task to execute a command which executes another program.
The command is executed successfully, the program is started/running successfully but its windows/UI is not shown up.
Environment
Basic environment details
21.2.0 (12498-16e1ac6956cd5177a99dc3fe33503661881c354f).
15.0.2
Windows 10 10.0
Additional Environment Details
Steps to Reproduce
Create a
Custom Command
task with the following details:Expected Results
InstanceReference.exe
will be running and showing up with a window.Actual Results
InstanceReference.exe
was running but its window did NOT show up.Possible Fix
N/A
Log snippets
Code snippets/Screenshots
There was no error or exception.
Any other info
InstanceReference.exe
is a UI program built with.NET Core 3.1
. It has no problem if I execute the exact same command withcmd
by myself. The program is executed successfully and its main window shows up normally.I tried with a different program
Calc
which is a built-in calculator on Windows. The issue also happened.I believe the problem is somewhere on the way the command proceeded, I do not know how Java so I can not go further.
The text was updated successfully, but these errors were encountered: