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”
[[runners]] name = "shell" url = "https://test.com/" token = "XXX" executor = "shell" shell = "powershell" [runners.cache]
variables: GIT_SSL_NO_VERIFY: "true" stages: - test ps_job: stage: test script: - $Error.Clear() - cd $CI_PROJECT_DIR - echo $CI_PROJECT_DIR - $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 From https://test.com/project bfa3959..0a1813d master -> origin/master Checking out 0a1813db as master... Skipping Git submodules setup $ $Error.Clear() $ cd $CI_PROJECT_DIR $ echo $CI_PROJECT_DIR C:/GitLab-Runner/builds/e27ae516/0/project $ $CI_PROJECT_DIR C:/GitLab-Runner/builds/e27ae516/0/project $ Get-Location Path ---- C:\GitLab-Runner\builds\e27ae516\0\project $ .\notepad.ps1