Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
gitlab-runner
gitlab-runner
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,000
    • Issues 2,000
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 203
    • Merge Requests 203
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Security & Compliance
    • Security & Compliance
    • Dependency List
    • License Compliance
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • gitlab-runnergitlab-runner
  • Issues
  • #4888

Closed
Open
Opened Nov 15, 2019 by Chris Hill@chill104

Add CI_JOB_IMAGE to predefined environment variables

Description

Problem Statement: Current build-time image: is not programmatically available to the CI Job itself.

In our organization there are many different image: used across thousands of projects. They could be explicit defined like node:v1.3.4 or dynamically node:$NODE_VERSION. In order for us to collect an aggregate view of all images being used, we'd like to have the expanded variable at build-time. This will also help jobs which will do something different based on the actual image being pulled.

Proposal

Add CI_JOB_IMAGE to predefined variables https://docs.gitlab.com/ee/ci/variables/predefined_variables.html#variables-reference

Links to related issues and merge requests / references

Edited Nov 23, 2019 by Chris Hill
Assignee
Assign to
12.9
Milestone
12.9 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: gitlab-org/gitlab-runner#4888