I tried to use jsonnet extension and found that jsonnet extension is enabled for all repositories and
I can’t make it disabled per repositories.
If jsonnet extension is enabled and a file .drone.jsonnet is not found, the build seems not to be run even if the file .drone.yml exists.
I propose we should make jsonnet extension’s enabled or disabled per repositories at web UI’s repository settings.
jsonnet is supported by an external plugin, s we would not add configuration parameters for external plugins in the drone user-interface. I think the solution to this issue, however, is much simpler.
we can just add this to the plugin:
if !strings.HasSuffix(req.Repo.Config, ".jsonnet") {
return nil, nil
}
If the file does not have a jsonnet suffix, a nil value is returned. This will instruct drone to fallback to the default yaml file.