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:
- 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.