My pipeline has randomly started failing. The first step reads:
- step:
name: Build simulation
script:
- rsync -av --progress . dist --exclude dist
artifacts:
- dist/**
It's failing with the log:
+ rsync -av --progress . dist --exclude dist
bash: rsync: command not found
bash: lesspipe: command not found
bash: dircolors: command not found
First I thought it was an issue with rsync, but actually, whatever I have tried fails similarly, eg:
bash: ssh: command not found
bash: apt-get: command not found
Just to emphasis, it was initially working fine, and now it seems like the container doesn't have anything installed in it. Does anyone know what is going on here? Cheers.
Hey Jonathan,
Without being able to see your pipelines configuration, there is a possibility that you are using a variable named "PATH" somewhere in your workspace which is conflicting with the default "PATH" variable which is prepended/required for every command in pipelines and will cause this error for every command when a conflict is present.
We also have a public ticket highlighting the same - if this variable exists as a custom variable (either in deployment, repository or workspace variables), please remove or rename it and try to run the build again:
https://jira.atlassian.com/browse/BCLOUD-20162
If this is not the case, please let me know and we can open a ticket on your behalf.
Cheers!
- Ben (Bitbucket Cloud Support)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.