We use a official Windows runner from Gitlab-ci. We want to upload artifacts.
We use the 'artifact' keyword in our yaml file to define the artefacts that need to be uploaded. When we commit this is the message we are getting:
gitlab-ci-multi-runner 0.7.2 (998cf5d)
WARNING: artifacts is not supported by selected executor and shell
Using Shell executor...
So is this because it is using a Windows machine? What is the deal here?
Uploading artifacts from the windows shells cmd
and powershell
are currently not supported. After a while of digging the source I found that according to gitlab-ci-multi-runner\shells\bash.go bash
does support it.
The working solution for me is:
C:\Program Files (x86)\Git\bin
) to your PATH
bash
in the cmd
find your config.toml and modify/add:
executor = "shell"
shell = "bash"
restart your git-runner service
cmd.exe /c "dir"
)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With