I wrote a very simple .gitlab-ci.yml as below:
image: horchen/vscode-ext-dev
job1:
script:
- echo "Hello World"
Just echo Hello World, I think it should be able to run on any platform. But gitlab-ci always tells me there is an syntax error in it.
Running with gitlab-runner 13.2.2 (a998cacd)
on nodejs-ci aPuhC2uZ
Preparing the "docker" executor
Using Docker executor with image horchen/vscode-ext-dev ...
Using locally found image version due to if-not-present pull policy
Using docker image sha256:17af24ad877daa656e102508585c7262585be04b05a75cc89833afcfe7403ebb for horchen/vscode-ext-dev ...
Preparing environment
Running on runner-apuhc2uz-project-1-concurrent-0 via cf9f41a14878...
Getting source from Git repository
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/horchen/vscode-rlcv/.git/
Checking out 93d3b0e1 as master...
Skipping Git submodules setup
Executing "step_script" stage of the job script
[: line 1: syntax error: unexpected end of file (expecting "then")
ERROR: Job failed: exit code 2
Does anyone know why it reports such an error?
--------------- Append Data -------------------
Actually I really developed on windows but I have checked the CR/LF style, also checked hexdump. And have tried to edit it on webIDE and linux VIM, both didn't find ^M in it.
Offset: 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
00000000: 69 6D 61 67 65 3A 20 68 6F 72 63 68 65 6E 2F 76 image:.horchen/v
00000010: 73 63 6F 64 65 2D 65 78 74 2D 64 65 76 0A 0A 61 scode-ext-dev..a
00000020: 66 74 65 72 5F 73 63 72 69 70 74 3A 0A 20 20 2D fter_script:...-
00000030: 20 22 72 6D 20 2A 2E 76 73 69 78 22 0A 0A 6A 6F ."rm.*.vsix"..jo
00000040: 62 31 3A 0A 20 20 73 63 72 69 70 74 3A 0A 20 20 b1:...script:...
00000050: 20 20 2D 20 65 63 68 6F 20 22 48 65 6C 6C 6F 20 ..-.echo."Hello.
00000060: 57 6F 72 6C 64 22 0A World".