Always pull docker image to prevent use of stale copies.
Change-Id: I04c23b47453a74a1376a478025c5c734cef4323c
diff --git a/cicd/pipelines/core/images.jenkins b/cicd/pipelines/core/images.jenkins
index 63a0a17..6b68df2 100644
--- a/cicd/pipelines/core/images.jenkins
+++ b/cicd/pipelines/core/images.jenkins
@@ -16,7 +16,8 @@
command: 'cat',
args: '',
ttyEnabled: true,
- privileged: true)
+ privileged: true,
+ alwaysPullImage: true)
def aptlyVolume = persistentVolumeClaim(claimName: 'aptly-state', mountPath: '/var/lib/aptly')
podTemplate(label: buildLabel, containers: [jnlpContainer, debianContainer], volumes: [aptlyVolume], envVars: []) {
diff --git a/cicd/pipelines/tasks/task_create_mirror.jenkins b/cicd/pipelines/tasks/task_create_mirror.jenkins
index 7ad9c20..b3600c8 100644
--- a/cicd/pipelines/tasks/task_create_mirror.jenkins
+++ b/cicd/pipelines/tasks/task_create_mirror.jenkins
@@ -12,7 +12,8 @@
command: 'cat',
args: '',
ttyEnabled: true,
- privileged: true)
+ privileged: true,
+ alwaysPullImage: true)
def aptlyVolume = persistentVolumeClaim(claimName: 'aptly-state', mountPath: '/var/lib/aptly')
podTemplate(label: buildLabel, containers: [jnlpContainer, debianContainer], volumes: [aptlyVolume], envVars: []) {
diff --git a/cicd/pipelines/tasks/task_create_repo.jenkins b/cicd/pipelines/tasks/task_create_repo.jenkins
index 0e2d457..5010494 100644
--- a/cicd/pipelines/tasks/task_create_repo.jenkins
+++ b/cicd/pipelines/tasks/task_create_repo.jenkins
@@ -12,7 +12,8 @@
command: 'cat',
args: '',
ttyEnabled: true,
- privileged: true)
+ privileged: true,
+ alwaysPullImage: true)
def aptlyVolume = persistentVolumeClaim(claimName: 'aptly-state', mountPath: '/var/lib/aptly')
podTemplate(label: buildLabel, containers: [jnlpContainer, debianContainer], volumes: [aptlyVolume], envVars: []) {
diff --git a/cicd/pipelines/tasks/task_update_mirrors.jenkins b/cicd/pipelines/tasks/task_update_mirrors.jenkins
index 37f9722..4bd9a98 100644
--- a/cicd/pipelines/tasks/task_update_mirrors.jenkins
+++ b/cicd/pipelines/tasks/task_update_mirrors.jenkins
@@ -12,7 +12,8 @@
command: 'cat',
args: '',
ttyEnabled: true,
- privileged: true)
+ privileged: true,
+ alwaysPullImage: true)
def aptlyVolume = persistentVolumeClaim(claimName: 'aptly-state', mountPath: '/var/lib/aptly')
podTemplate(label: buildLabel, containers: [jnlpContainer, debianContainer], volumes: [aptlyVolume], envVars: []) {
diff --git a/vars/functions.groovy b/vars/functions.groovy
index e7a195b..c4f4215 100644
--- a/vars/functions.groovy
+++ b/vars/functions.groovy
@@ -140,11 +140,12 @@
def jnlpContainer = containerTemplate(name: 'jnlp',
image: 'jenkins/jnlp-slave:alpine')
def debianContainer = containerTemplate(name: 'debian',
- image: 'gcr.io/mendel-linux-cloud-infra/mendel-builder@sha256:30f5a2b1b85e678fc25d4322226a55e571ee7a4c344a35d1b13c3e496d4bbe3f',
+ image: 'gcr.io/mendel-linux-cloud-infra/mendel-builder:latest',
command: 'cat',
args: '',
ttyEnabled: true,
- privileged: true)
+ privileged: true,
+ alwaysPullImage: true)
def aptlyVolume = persistentVolumeClaim(claimName: 'aptly-state', mountPath: '/var/lib/aptly')
podTemplate(label: buildLabel, containers: [jnlpContainer, debianContainer], volumes: [aptlyVolume], envVars: []) {