Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`test:first job: script should be a string or an array of a strings`

I'd like to create a simple "hello, world" Gitlab CI script. I already got the Docker runner working and I'm experimenting with something like this:

image: debian:sid

test:first:
  script:
  - true

Unfortunately, the build fails with the error: test:first job: script should be a string or an array of a strings

What am I doing wrong?

like image 593
d33tah Avatar asked Dec 09 '15 13:12

d33tah


1 Answers

After a bit of experimenting, I found the root cause and reported it as a bug. Apparently "true" was evaluated as a boolean here. Adding path to true executable helped solve the problem.

like image 62
d33tah Avatar answered Oct 30 '22 08:10

d33tah