'How to pass command line arguments into gauge tests?

I want pass a command line argument is_triggered=true as part of running Jenkins gauge tests run.

How can I pass the argument when I am doing gauge run specs --env TEST?



Solution 1:[1]

I am not sure but I think u can't. What I am doing is to start with

gauge -Penv="keys" 

and before I start the test I am writing in the env file my env:

echo -e is_triggered = true > env/keys/default.properties

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1