Skip to content

Implement passing trigger payload into pipeline variable [RUN ALL RSPEC] [RUN AS-IF-FOSS]

Furkan Ayhan requested to merge 31197-webhook-payload-to-pipelines into master

What does this MR do?

This MR implements passing trigger payloads into pipelines as a variable (TRIGGER_PAYLOAD) with the type of file.

It will be used especially for webhook payloads.

Related to #31197 (closed)

It is behind a feature flag ci_trigger_payload_into_pipeline (#321027 (closed)).

Screenshots (strongly suggested)

Example CI config:

test:
  stage: test
  script:
    - echo $TRIGGER_PAYLOAD
    - cat $TRIGGER_PAYLOAD

Example trigger request:

Screen_Shot_2021-02-10_at_12.37.25

And the result:

Screen_Shot_2021-02-10_at_12.37.55

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading