We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a pipeline in Harness CI, this automation needs to create Tag triggers.
Harness CI does not currently have built-in Tag triggers, but I successfully tested this workaround.
NOTE: We should verify this workaround with engineering. We could probably do something similar with payloadConditions.
payloadConditions
trigger: name: Tag identifier: Tag enabled: true encryptedWebhookSecretIdentifier: "" description: "" tags: {} orgIdentifier: default projectIdentifier: example pipelineIdentifier: example source: type: Webhook spec: type: Github spec: type: Push spec: connectorRef: account.Jim_Sheldon_GitHub autoAbortPreviousExecutions: false payloadConditions: [] headerConditions: [] jexlCondition: <+trigger.payload.ref> =~ "refs/tags/v.*" repoName: jimsheldon/drone-sandbox actions: [] pipelineBranchName: <+trigger.branch> inputSetRefs: - inputs
Which should be the equivalent to this Drone YAML:
kind: pipeline type: docker name: default trigger: ref: - refs/tags/v*
trigger: name: Tag identifier: Tag enabled: true encryptedWebhookSecretIdentifier: "" description: "" tags: {} orgIdentifier: default projectIdentifier: example pipelineIdentifier: example source: type: Webhook spec: type: Github spec: type: Push spec: connectorRef: account.Jim_Sheldon_GitHub autoAbortPreviousExecutions: false payloadConditions: [] headerConditions: [] jexlCondition: <+trigger.payload.ref> =~ "refs/tags/.*" repoName: jimsheldon/drone-sandbox actions: [] pipelineBranchName: <+trigger.branch> inputSetRefs: - inputs
kind: pipeline type: docker name: default trigger: event: - tag
The text was updated successfully, but these errors were encountered:
Depending on how the build was initiated, different variables are available. Documentation is here https://developer.harness.io/docs/continuous-integration/ci-technical-reference/built-in-cie-codebase-variables-reference#how-and-when-codebase-variables-get-resolved
Sorry, something went wrong.
Merge remote-tracking branch 'harness0/master' into abhinav/add-expor…
5087669
…ter (#7)
No branches or pull requests
When creating a pipeline in Harness CI, this automation needs to create Tag triggers.
Examples
Harness CI does not currently have built-in Tag triggers, but I successfully tested this workaround.
NOTE: We should verify this workaround with engineering. We could probably do something similar with
payloadConditions
.Tag Trigger with pattern
Which should be the equivalent to this Drone YAML:
Tag Trigger
Which should be the equivalent to this Drone YAML:
The text was updated successfully, but these errors were encountered: