woodpecker/docs/versioned_docs/version-3.0/30-administration/22-backends/50-custom-backends.md
Patrick Schratz bdf753f678
Add docs for 3.0 (#4705)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
Co-authored-by: qwerty287 <qwerty287@posteo.de>
Co-authored-by: Robert Kaussow <mail@thegeeklab.de>
Co-authored-by: Anbraten <anton@ju60.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Anbraten <6918444+anbraten@users.noreply.github.com>
2025-01-18 20:39:06 +01:00

658 B

Custom backends

If none of our backends fits your usecase, you can write your own.

Therefore, implement the interface "go.woodpecker-ci.org/woodpecker/woodpecker/v2/pipeline/backend/types".Backend and build a custom agent using your backend with this main.go:

package main

import (
  "go.woodpecker-ci.org/woodpecker/v3/cmd/agent/core"
  backendTypes "go.woodpecker-ci.org/woodpecker/v3/pipeline/backend/types"
)

func main() {
  core.RunAgent([]backendTypes.Backend{
    yourBackend,
  })
}

It is also possible to use multiple backends, you can select with WOODPECKER_BACKEND between them.