gitlab-ci.xml:script config should be a string or an array of strings
The following command in a job script:
STATUS_ID=$(grep -Eo "Status Code [0-9]+: Done" somefile | grep -Eo "[0-9]+")
Seems to be causing the following ci lint error:
SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。script config should be a string or an array of strings
The colon (:
) makes the line be interpeted as yaml
map.
The solution (to escape the special meaning of the colon) is to enclose the entire line in single quotes:
'STATUS_ID=$(grep -Eo "Status Code [0-9]+: Done" somefile | grep -Eo "[0-9]+")'

更多精彩