Because when i run the pipeline, Exception is throwing like "The driver is not executable: /opt/atlassian/pipelines/agent/build/driver/chromedriver.exe".
Hi Maneesh,
Can you paste in a copy of your bitbucket-pipelines.yml file?
Can you also try run `ls -l /opt/atlassian/pipelines/agent/build/driver` to check if chromedriver.exe is marked as an executable file?
Thanks,
Phil
Hi Philip,
I am sharing the yml file, Please check and let me know if any possibilities to install
# This is a sample build configuration for Java (Maven).# Check our guides at https://confluence.atlassian.com/x/zd-5Mw for more examples.# Only use spaces to indent your .yml configuration.# -----# You can specify a custom docker image from Docker Hub as your build environment.image: maven:3.3.9
pipelines:default:- step:caches:- mavenscript: # Modify the commands below to build your repository.- mvn -B verify # -B batch mode makes Maven less verbose-npm install-npm install chromedriver
From the error message you posted above, it looks like the driver is already installed but has the wrong file permissions.
Can you add 'ls -l /opt/atlassian/pipelines/agent/build/drive' at the start of your script and paste in the output you see?
I am also facing the same issue. My chrome webdriver file is in 'environment_setup' folder. I have added the above command in my script and then it resulted as follows:
<span>total 8628<br></span><span>-rw-rw-rw-. 1 root root 8835072 Nov 8 09:41 chromedriver.exe</span><span>+ ls -l /opt/atlassian/pipelines/agent/build/environment_setup/<br></span>
<span>total 8628<br></span>
<span>-rw-rw-rw-. 1 root root 8835072 Nov 8 09:41 chromedriver.exe</span>
My yml file looks like this:
image: python:3.7.2pipelines:default: - step:script: - ls -l /opt/atlassian/pipelines/agent/build/environment_setup/ #check permissions - 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
It looks like you're new here. Sign in or register to get started.