Use Pipeline ID form job payload for logging and similar

What does this MR do?

Use Pipeline ID form job payload for logging and similar

While GitLab Runner doesn't require any Pipeline context to execute jobs, it's sometimes useful to log it.

For that we're now exposing the Pipeline ID in the job payload, see gitlab!231501 (merged).

This commit adds support for that new payload part on the Runner side and places Pipeline ID in the runner logs, usage logs and replaces existing Docker executor label that was reading the Pipeline ID from the predefined environment variable.

Why was this MR needed?

What's the best way to test this MR?

What are the relevant issue numbers?

Merge request reports

Loading