Drone cli output is different from jsonnet cli

the when stanza can be added to steps, however, in the above example you are adding the when stanza to the pipeline, which is why it is being ignored. Perhaps you intended to add the trigger stanza to the pipeline instead?

source: Triggers | Drone

local whenCommitToNonMaster(step) = step {
- when: {
+ trigger: {
    event: ['push'],
    branch: {
      exclude: ['master'],
    },
  },
};