Dockerhub now returns 200 for DELETEs

We need to adapt to this, else the promote pipeline fails.

Change-Id: Ie617efc8b9a7fefb565c67c796d42c87a1ee998f
This commit is contained in:
Jean-Philippe Evrard 2019-06-20 11:36:46 +02:00
parent 924bf29c3d
commit 9bc813daa7
2 changed files with 2 additions and 2 deletions

View File

@ -15,6 +15,6 @@
uri: uri:
url: "https://hub.docker.com/v2/repositories/{{ image.repository }}/tags/{{ docker_tag.name }}/" url: "https://hub.docker.com/v2/repositories/{{ image.repository }}/tags/{{ docker_tag.name }}/"
method: DELETE method: DELETE
status_code: 204 status_code: [200,204]
headers: headers:
Authorization: "JWT {{ jwt_token.json.token }}" Authorization: "JWT {{ jwt_token.json.token }}"

View File

@ -23,6 +23,6 @@
uri: uri:
url: "https://hub.docker.com/v2/repositories/{{ image.repository }}/tags/change_{{ zuul.change }}_{{ image_tag }}/" url: "https://hub.docker.com/v2/repositories/{{ image.repository }}/tags/change_{{ zuul.change }}_{{ image_tag }}/"
method: DELETE method: DELETE
status_code: 204 status_code: [200,204]
headers: headers:
Authorization: "JWT {{ jwt_token.json.token }}" Authorization: "JWT {{ jwt_token.json.token }}"