CICD variable usage

Hello everyone!

I’m trying to create a simple CICD using gitlab on my project.
The thing that I’m trying to do is to store an env variable from a file and then pass is
as an argument to mbed compile.

it looks like this:

- mbed compile ......... -D CI_VERSION_STR=$CICD_VERSION_STRING

Howerever, it doesnt work, it seems to be a problem with the quotes marks… ive been trying these things also:

each of them didnt give me the correct result…
what am I doing wrong?

Hi @SucaNahui

The script section in your .gitlab-ci.yml file contains Bash commands, so I would expect to see - CICD_VERSION_STRING =$(...) or similar on your first line.

What image are you using here?