Driver is not executable error in Jenkins but its running in Local Machine (MacBook)

后端 未结 2 1912
无人及你
无人及你 2020-12-22 05:58

I am working on MacBook. Our Jenkins server is running in linux server when I running tests via testing.xml file all test classes are running but when I run Jenkins

2条回答
  •  盖世英雄少女心
    2020-12-22 06:42

    My guess - Exactly what the error says, the driver is not executable. SSH into the server and see if

    sudo chmod 777 /var/lib/jenkins/workspace/TravelCenterSeleniumJenkinsIntegrationCMB/target/classes/chromedriver
    

    fixes it (777 grants read/ write/ execute permissions to a file for user, group, and others respectively). If you can't SSH in whatever provisions your Jenkins server probably needs to make the file executable on on startup

提交回复
热议问题