I am using the following command to run my Serenity test cases using Chrome browser, passing credentials. It is working perfectly.
mvn clean verify -Dwebdriver.driver=chrome -DuserId='xxxx' -Dpasscode='xxxxxxx'
Now I need to integrate with Jenkins which is running on a Redhat Linux machine, which has no GUI. It had been just now only got installed with firefox browser. I had provided geckodriver binary in my code itself. The above command is invoking the browser, but may be because of OS with out GUI, it is not completing the tests and giving in the console the following message: "timeout waiting for a browser".
The solution, I think is to run the browser tests in head-less mode. How to do that ?