Downstream Build

by drone-plugins

Use this plugin to trigger builds for a list of downstream repositories. This is useful when updates to a repository have downstream impacts that should also be tested.

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

Example target specific branches:

pipeline:
  trigger:
    image: plugins/downstream
    server: https://drone.example.com
    token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
    fork: true
    repositories:
+     - octocat/Hello-World@develop
+     - octocat/Spoon-Knife@master

Secret Reference

This plugins supports sourcing sensitive parameters from the secret store. Example configuration sources the token from the secret store:

pipeline:
  trigger:
    image: plugins/downstream
    server: https://drone.example.com
-   token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
    fork: true
    repositories:
      - octocat/Hello-World
      - octocat/Spoon-Knife
+   secrets: [ downstream_token ]

Parameter Reference

token
drone server auth token
server
drone server url
repositories
trigger builds for the repository list
fork
trigger new build numbers if true, else rebuild
wait
wait for any currently running builds to finish if true, else fails
timeout
how long to wait on any currently running builds defaults to 60 seconds

¿Hay algún error en esta página? Por favor, háganoslo saber o edite esta página.