Refer environment variable in Run.json for Fleet IDE

1.1k views Asked by At

I am working on setting up the JetBrains Fleet for JavaScript development.

Here is my hard coded run.json look like.

"configurations": [
    {
        "type": "command",
        "name": "local test",
        "program": "npm",
        "args": [
            "run",
            "test",
            "ssoni_local"
        ],
    }
]

Instead of using ssoni (my username), I would like to use ${USERNAME} environment variable so the same run.json file can be used my other team members as well.

How can I achieve the same?

Also same needs for the hostname variable as well. Instead of hardcoding machine name want to use an environment variable.

1

There are 1 answers

0
Andrey On

Fleet supports several macros variables in run configuration json file, but the ${USERNAME} is not supported. I have filled a request for this: FL-19179 Run Configurations: support user name macros variable

Please feel free to vote for in in Fleet issue tracker.