How do I open the GUI when triggering a gitlab job?

I do have a yml-file which runs a powershell script which starts an application on a local windows PC. This works so far when triggering the job from gitlab. On the other hand I can see that the application has been started when checking the windows task manager. So far so good…

The problem is that the job never ends when started from gitlab, but I can not see the reason because the application is not shown. When running the same powershell script directly from the windows PC it works as expected and the job finishes in a few seconds.

Questions:

  • How can I set gitlab (yml-file or other files) in order the application is opening with the GUI?
  • Is there a “debug” mode which can be activated in order see where the application hangs when starting from gitlab?
  • Other possibilities?

thanks in advance