Trigger a build from within another Build

Is it possible to trigger a build on the success of another build.

I think it is possible by creating a new pipeline and assign a trigger for that

https://docs.drone.io/pipeline/triggers/#by-status

trigger:
 status:
 - success
1 Like

Thank you for the reply @dns,

Would this be two pipelines within one drone file?

Sure you can have many pipelines on your single drone file.

Just use default yaml separator

---
kind: pipeline
type: kubernetes
name: pipeline-1

platform:
  os: linux
  arch: amd64

steps:

---
kind: pipeline
type: kubernetes
name: pipeline-2

platform:
  os: linux
  arch: amd64

steps:

1 Like