bundle install --path vendor set test_env=test_server bundle exec cucumber features\regression\dashboard.feature
However, only the first line is executed by jenkins. It turns out that jenkins creates a .bat file for those above commands and jenkins calls the commands as
cmd \c call hudson.batAnd apparently the cmd "Call" command only works on the first command. To fix the issue simply append the keyword "call" on every command.
The solution:
call bundle install --path vendor set test_env=test_server call bundle exec cucumber features\regression\dashboard.feature
No comments:
Post a Comment