From 7fa5a5e5dace4764de52ad6c2aa9d3d23bc48b36 Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 8 May 2019 19:26:04 +0100
Subject: [PATCH] ci: Parameterize the Docker image to use

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 ci/Jenkinsfile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile
index e396c50f9..0d2cde0ec 100644
--- a/ci/Jenkinsfile
+++ b/ci/Jenkinsfile
@@ -58,8 +58,12 @@ pipeline {
             dockerRegistryCred = env.CI_DOCKER_REGISTRY_CRED;
           }
 
+          if (!env.CI_DOCKER_IMAGE) {
+            env.CI_DOCKER_IMAGE = 'steamrt/sdk:scout'
+          }
+
           docker.withRegistry("https://${env.CI_DOCKER_REGISTRY}", dockerRegistryCred) {
-            docker.image("${env.CI_DOCKER_REGISTRY}/steamrt/sdk:scout").inside('--mount type=tmpfs,destination=/var/cache/apt/archives') {
+            docker.image("${env.CI_DOCKER_REGISTRY}/${env.CI_DOCKER_IMAGE}").inside('--mount type=tmpfs,destination=/var/cache/apt/archives') {
               sh '''
               set -eu
               cd src
-- 
GitLab