Drone plugins > Downstream Build
drone.svg

Downstream Build

by drone-plugins


Use this plugin to trigger builds for a list of downstream repositories. This

Example

kind: pipeline
name: default

steps:
- name: trigger  
  image: plugins/downstream
  settings:
    server: https://drone.example.com
    token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
    fork: true
    repositories:
      - octocat/Hello-World
      - octocat/Spoon-Knife

Properties

  • token

    stringrequired

    drone server auth token.

    Secret recommended

    Default: none

  • server

    stringrequired

    drone server url.

    Default: none

  • repositories

    arrayrequired

    trigger builds for the repository list, you can mention branch using @.

    Default: none

  • wait

    booleanoptional

    wait for any currently running builds to finish if true, else fails.

    Default: false

  • timeout

    numberoptional

    how long to wait on any currently running builds.

    Default: 60

  • params

    arrayoptional

    supports params in KEY=value format as well as loading of params from godotenv files.

    Default: none

  • deploy

    stringoptional

    Trigger a deployment (promote build), value is the environment/target for the new build.

    Default: none

  • last_successful

    booleanoptional

    Trigger the last successful build for the branch specified in repositories.

    Default: false