Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab Runner Scripts
GitLab Runner Scripts
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ISC Open Source Projects
  • GitLab Runner ScriptsGitLab Runner Scripts
  • Merge Requests
  • !5

Merged
Opened Jul 08, 2020 by Michał Kępień@michalMaintainer

Use CUSTOM_ENV_CI_JOB_IMAGE

  • 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
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: isc-projects/gitlab-runner-scripts!5
Source branch: michal/use-CUSTOM_ENV_CI_JOB_IMAGE

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.