I am trying to create a CI/CD pipeline for my robot framework project. However, I am facing the below issue:
"WebDriverException: Message: 'chromedriver' executable may have wrong permissions."
This is my bitbucket-pipelines.yml file:
image: python:3.7.2
pipelines:
default:
- step:
script:
- export PYTHONPATH="${PYTHONPATH}:/opt/atlassian/pipelines/agent/build/custom_library/"
- export PATH="$PATH:/opt/atlassian/pipelines/agent/build/environment_setup/"
- pip install -r requirements.txt
- robot --exclude NORUN test_suite-site #run test-suite for site
- echo "Code Execution is Complete" #notify code execution
I ran the below command to check permissions:
ls -l /opt/atlassian/pipelines/agent/build/environment_setup/
The results for this were as below:
<span>total 19916<br></span><span>-rw-rw-rw-. 1 root root 11606728 Nov 7 19:11 chromedriver<br></span><span>-rw-rw-rw-. 1 root root 8835072 Nov 7 19:11 chromedriver.exe</span><span>+ ls -l /opt/atlassian/pipelines/agent/build/environment_setup/<br></span>
Please help me out in fixing this.