Adding @josmo -
We are also facing similar issue with Drone v0.8.5 and Stash - 5.9
Here is the .drone.yml
pipeline:
build_unit_test:
image: maven:3.5.3-jdk-8
pull: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- git log | head -n 2
- mvn clean package
The root cause of this issue was because the user that activated the repository had their access revoked in Stash. As a result, when Drone tried to fetch the .drone.yml file for the repository, it returned an oauth error instead of a yaml file (hence the parsing error).
The solution is to use the drone repo chown command to re-assign ownership.
I recently helped one of our enterprise customers with this same issue, and they confirmed the error was a result of changed permissions. The user that activated the repository had their permissions revoked. They were able to resolve by disabling and re-enabling the repository (chown would work as well).