mirror of
https://github.com/rssnyder/drone-plugin-trigger-pipeline
synced 2026-06-30 16:30:36 -05:00
No description
- Python 97.2%
- Dockerfile 2.8%
| .gitignore | ||
| Dockerfile | ||
| plugin.py | ||
| README.md | ||
| requirements.txt | ||
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 URLHARNESS_PLATFORM_API_KEY: The Harness platform API keyORG_ID: The organization identifierPROJECT_ID: The project identifierPIPELINE_ID: The pipeline identifierPIPELINE_INPUT: The pipeline inputs in JSON format, will be converted to yaml before executionPOLL_STATUS: Poll for pipeline status after execution, otherwise return after trigger