Skip to content

[proposal] trigger downstream with several key/value #29

@ozbillwang

Description

@ozbillwang

For my understanding, trigger drone-downstream is to run a similar drone build start command via api.

Which I need:

  1. Extra feature to trigger with several --param key=value. These key/values can be generated from preview steps in same .drone.yml
  2. Support drone deploy as well (Ability to trigger a deployment #25), because both drone build and drone deploy supports --param key=value and I do need to trigger downsteam with drone deploy directly.

My questions are, why not use a drone-cli container to do the job directly via shell scripting, more than write a seperate Go plugin as this repo? It will support any new future features automatically from new version of drone cli drone build/deploy

So:

  1. Can Drone team lead to build drone-cli as official image when new version released? It will be better to make the old versions available as well.

  2. Rewrite this plugin (or create a new one) to accept key/value and support deploy as well

New plugin usage will be similar as below:

notify:
  downstream:
    image: plugins/downstream
    server: https://ci.example.com
    type: [build|deploy]
    param: 
      key1: ${varialbe1}
      key2: ${varialbe2}
    repositories:
      - octocat/Hello-World@develop

I am happy to work on this, but the thing to stop me is, how to transfer variables from preview step to this plugin (varialbe1 and varialbe2)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions