Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is chromedriver executable in bitbucket?

Deleted user January 31, 2019

 Because when i run the pipeline, Exception is throwing like "The driver is not executable: /opt/atlassian/pipelines/agent/build/driver/chromedriver.exe".

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 3, 2019

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

Deleted user February 4, 2019

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:
- maven
script: # Modify the commands below to build your repository.
- mvn -B verify # -B batch mode makes Maven less verbose
-npm install
-npm install chromedriver

Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 4, 2019

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?

Ameet Kumar Pradhan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 8, 2019

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:

+ ls -l /opt/atlassian/pipelines/agent/build/environment_setup/
total 8628
-rw-rw-rw-. 1 root root 8835072 Nov 8 09:41 chromedriver.exe

My yml file looks like this:

image: python:3.7.2

pipelines:
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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events