Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab Runner Scripts GitLab Runner Scripts
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISC Open Source ProjectsISC Open Source Projects
  • GitLab Runner ScriptsGitLab Runner Scripts
  • Merge requests
  • !5

Use CUSTOM_ENV_CI_JOB_IMAGE

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Michał Kępień requested to merge michal/use-CUSTOM_ENV_CI_JOB_IMAGE into main Jul 08, 2020
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 2

The CUSTOM_ENV_CI_JOB_IMAGE variable contains the value of the image key set for a given GitLab CI job. Use that instead of the job name for determining the QCOW2 image to use, so that defining GitLab CI jobs using the libvirt/QEMU custom executor becomes a bit more similar in spirit to defining jobs using the Docker executor.

This variable was previously not exposed in the Custom executor's environment - this feature was added in GitLab 12.6, i.e. after the scripts in this repository were initially written. Shout-out to @godfryd for finding this. 👊

@godfryd: could you please take a look whether this branch works for your purposes?

Edited Jul 08, 2020 by Michał Kępień
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: michal/use-CUSTOM_ENV_CI_JOB_IMAGE