No description
  • Python 97.2%
  • Dockerfile 2.8%
Find a file
Riley Snyder afc9e62a90 readme
2025-10-30 14:18:33 -05:00
.gitignore init 2025-10-28 09:46:56 -05:00
Dockerfile Initial commit 2025-10-28 08:49:54 -05:00
plugin.py init 2025-10-28 09:46:56 -05:00
README.md readme 2025-10-30 14:18:33 -05:00
requirements.txt init 2025-10-28 09:46:56 -05:00

drone-plugin-trigger-pipeline

A Drone plugin for triggering a Harness pipeline.

Usage

- step:
    type: Plugin
    name: pipeline trigger
    identifier: pipeline_trigger
    spec:
    connectorRef: account.harnessImage
    image: harnesscommunity/drone-plugin-trigger-pipeline
    settings:
        HARNESS_URL: https://app.harness.io
        HARNESS_PLATFORM_API_KEY: <+secrets.getValue(<+pipeline.variables.HARNESS_PLATFORM_KEY>)>
        ORG_ID: <+pipeline.variables.WORKSPACE_ORG>
        PROJECT_ID: <+pipeline.variables.WORKSPACE_PROJECT>
        PIPELINE_ID: workspace_prov
        PIPELINE_INPUT: "{\"pipeline\":{\"identifier\":\"workspace_prov\",\"template\":{\"templateInputs\":{\"stages\":[{\"stage\":{\"identifier\":\"Terraform\",\"template\":{\"templateInputs\":{\"type\":\"IACM\",\"spec\":{\"workspace\":\"<+pipeline.variables.RESOURCE_NAME>\"},\"variables\":[{\"name\":\"Destroy\",\"type\":\"String\",\"default\":\"false\",\"value\":\"false\"}]}}}}]}}}}"
        POLL_STATUS: "true"

Parameters

  • HARNESS_URL: The Harness URL
  • HARNESS_PLATFORM_API_KEY: The Harness platform API key
  • ORG_ID: The organization identifier
  • PROJECT_ID: The project identifier
  • PIPELINE_ID: The pipeline identifier
  • PIPELINE_INPUT: The pipeline inputs in JSON format, will be converted to yaml before execution
  • POLL_STATUS: Poll for pipeline status after execution, otherwise return after trigger