Gitlab CI - Windows executor = "shell"


I just want to run an application in my private VM every commit, I start trying to run notepad.
but I am not capable to succeed. could you please help me?

I set up a gitlab runner executor shell :
concurrent = 1
check_interval = 0
log_level = “debug”

  name = "shell"
  url = ""
  token = "XXX"
  executor = "shell"
  shell = "powershell"

my .gitlab-ci.yml


  - test
  stage: test
  - $Error.Clear()
  - echo $CI_PROJECT_DIR
  - Get-Location
  - .\notepad.ps1

And my notepad.ps1, located in the root directory is just
that basically work.

The project is Fetch to the VM but pipline get stuck and in the VM the notepad is not started.

Running with gitlab-runner 11.1.0 (081978aa)
  on shell e27ae516
Using Shell executor...
Running on DESKTOP-2D1PM5J...
Fetching changes...
HEAD is now at bfa3959 Update .gitlab-ci.yml
   bfa3959..0a1813d  master     -> origin/master
Checking out 0a1813db as master...
Skipping Git submodules setup
$ $Error.Clear()
$ Get-Location

$ .\notepad.ps1

I found out that the job is executed but the notepad run as Background process and not as Apps.

If I “end Task” of notepad in the Background process the job succeed.

Someone know how to start it as Apps?

Hi @mrkintaro, are you trying to run a graphic application in a CI job? I don’t think it is possible…

Hi, thx.
Do you think there is an alternative to what I want to achieve?
I have source code developed in a specific app. The developers commits the codes to a repo.
I want to test this code in the apps with specific test cases but the apps has a grafical user interface where I have to click some button.

AFAIU, there are automatic tools for testing GUIs, which can record your mouse/keyboard actions and afterwards replay them. However, I have no experience with such tools and can’t give a specific recommendation.

Hello @mrkintaro @alexk , I am facing similar issue… I am trying to run a jar application (Sikuli Application for Automated Visual testing) on a virtual machine using git runner… Did you resolve your issue or have a work around for the same??