Skip to content

Add link from Job to Environment

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

I'd like to get information about the environment for a given job

Ideally, this would be exposed in the REST API, but I'd be happy with GraphQL, e.g. as below

    job(id: "gid://gitlab/Ci::Build/12345")
    {
      stage {
        name
      }
      ...
      environment {
        name
        ...?
      }
    }

seems like name, url, action, and deployment-tier would be the sensible fields to query for

Edited by 🤖 GitLab Bot 🤖