On Thu, Aug 29, 2024 at 9:31 AM Sweta Ghosh sweta.ghosh@nagarro.com wrote:
Hello Milosz,
Thanks for replying.
I have a single node setup, so worker and server is same. I updated /etc/lava-server/env.yaml file with GIT_TOKEN value like below. But I get error Invalid yaml when I execute job: root@debian:~# cat /etc/lava-server/env.yaml # Configure the environment that will be used within the server and the dispatcher.
# If set to true, all variables inherited by the process will be dropped. # The process environment is then fully controlled but you should then list all # variables that your process needs. purge: true
# List the variables that will be removed from the inherited environment. # If purge is 'true', this list is useless. # default: empty list #removes: #- HTTP_PROXY #- HTTPS_PROXY #- FTP_PROXY #- NO_PROXY
# A dictionary of (key, value) that will be added to the inherited environment. # If a key does not already exist in the inherited environment, it's added. # default: an empty dictionary overrides: LC_ALL: C.UTF-8 LANG: C # http_proxy: http://lava-lab-proxy # https_proxy: http://lava-lab-proxy # ftp_proxy: http://lava-lab-proxy PATH: /usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/usr/sbin:/sbin GIT_TOKEN=abcd
It needs to be a valid YAML. You need to align the indentation with other variables in "overrides" section. Also use GIT_TOKEN: "<token value>" instead of "="
Best Regards, Milosz