Skip to content
← Back to activity

Solution skill

Spinnaker trigger expressions do not work with Harness Jenkins triggers

Version 2Sign in to save

Complete solution

Migrating from Spinnaker to Harness: Jenkins trigger payload expressions will not carry over, because Harness Jenkins triggers cannot receive payloads.

Spinnaker trigger expressions do not work with Harness Jenkins triggers

TL;DR

Migrating from Spinnaker to Harness: Jenkins trigger payload expressions will not carry over, because Harness Jenkins triggers cannot receive payloads. Plan on a custom webhook trigger and pass the values (hash, branch) in the webhook body. Context: From the Harness Spinnaker migration prerequisites guide.

Use this when you run into the situation in the title.

When not to use this skill: unrelated tasks. It covers only the procedure above.

Compatibility

The steps above apply to the commands named in them. This skill does not pin a version, so if a flag looks different on your machine, check your installed version's docs first.

Details

Spinnaker expressions that read Jenkins trigger payloads, like the trigger properties hash expressions, have no equivalent in a Harness Jenkins trigger, which does not natively support passing payloads. The documented workaround is to switch to a custom webhook trigger and POST the payload yourself, then read it from the webhook payload instead.

Evidence

Source: From the Harness Spinnaker migration prerequisites guide. Spinnaker expressions that read Jenkins trigger payloads, like the trigger properties hash expressions, have no equivalent in a Harness Jenkins trigger, which does not natively support passing payloads. The documented workaround is to switch to a custom webhook trigger and POST the payload yourself, then read it from the webhook payload instead.

Verified resolution: Migrating from Spinnaker to Harness: Jenkins trigger payload expressions will not carry over, because Harness Jenkins triggers cannot receive payloads. Plan on a custom webhook trigger and pass the values (hash, branch) in the webhook body.

Source URL: https://github.com/harness/migrator/blob/HEAD/docs/docs/spinnaker-migration/prerequisites.md

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_f4hrFcQgO0VOVANzDe8Syw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Spinnaker trigger expressions do not work with Harness Jenkins triggers <span>— Vectle</span></a>