bitsbeats / drone-tree-config

Drone helper for mono repositories.
Apache License 2.0
103 stars 24 forks source link

did not find a .drone.yml #37

Closed mavarazo closed 3 years ago

mavarazo commented 3 years ago

Hello

I try you plugin for setup drone, because I have multi module projects, and as far as I know, this plugin is the only way so solve this. Currently I try to setup drone for my backend, frontend will be the next step. So I added .drone-consider with

$ cat .drone-consider
backend/.drone.yml

And a .drone.yml in backend/: https://github.com/mavarazo/archivit/blob/feature/next/backend/.drone.yml

While checking the container it logs the following error:

time="2021-01-20T21:19:42Z" level=info msg="server listening on address :3000"
time="2021-01-20T21:20:57Z" level=info msg="e73f8e77-8531-4a1a-a49a-437115d4c4a3 mavarazo/archivit started"
time="2021-01-20T21:20:57Z" level=info msg="e73f8e77-8531-4a1a-a49a-437115d4c4a3 match: mavarazo/archivit"
time="2021-01-20T21:20:57Z" level=debug msg="e73f8e77-8531-4a1a-a49a-437115d4c4a3 checking mavarazo/archivit .drone-consider"
time="2021-01-20T21:20:57Z" level=debug msg="Repositories.CompareCommits 200: https://api.github.com/repos/mavarazo/archivit/contents/.drone-consider?ref=adbebee6d116fa37e2720029a241002eaaf9adca"
time="2021-01-20T21:20:57Z" level=debug msg="drone-tree-config environment" after=adbebee6d116fa37e2720029a241002eaaf9adca before=1f3f6af1a9733ac35a4e261becdab192765566bf branch=master ref=refs/heads/feature/next slug=mavarazo/archivit trigger=@hook
time="2021-01-20T21:20:57Z" level=debug msg="Repositories.CompareCommits 200: https://api.github.com/repos/mavarazo/archivit/compare/1f3f6af1a9733ac35a4e261becdab192765566bf...adbebee6d116fa37e2720029a241002eaaf9adca"
time="2021-01-20T21:20:57Z" level=debug msg="e73f8e77-8531-4a1a-a49a-437115d4c4a3 changed files: \n  .drone-consider"
time="2021-01-20T21:20:57Z" level=info msg="e73f8e77-8531-4a1a-a49a-437115d4c4a3 finished"
time="2021-01-20T21:20:57Z" level=debug msg="config: cannot find configuration: mavarazo/archivit: feature/next: did not find a .drone.yml"
mach6 commented 3 years ago

There is no default value for PLUGIN_CONSIDER_FILE, which must be set, to turn on support for it. Ref: https://github.com/bitsbeats/drone-tree-config/blob/master/cmd/drone-tree-config/main.go#L29

Did you set a value?

e.g. PLUGIN_CONSIDER_FILE=.drone-consider

mavarazo commented 3 years ago

Yes, copied from your README:

$ docker inspect drone-tree-config | grep PLUGIN_CONSIDER_FILE
                "PLUGIN_CONSIDER_FILE=.drone-consider",
mach6 commented 3 years ago

Great! ... Thanks for sharing as it was not clear.

Next question... It looks like the change set does not have any changes for the backend/ content.. Thus, there is no pipeline to include.

From your output above, I only see the .drone-consider is in the change set.

time="2021-01-20T21:20:57Z" level=debug msg="e73f8e77-8531-4a1a-a49a-437115d4c4a3 changed files: \n  .drone-consider"
mavarazo commented 3 years ago

Ah, my fault, because I made everything step by step. Thanks for your help