Skip to content

Commit 794ec17

Browse files
Graham Daleyemmetog
authored andcommitted
Fixed task 'get token for jenkins api' to allow 404 status code in result
1 parent 918ba03 commit 794ec17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tasks/configure-jobs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
uri:
1919
url: '{{ jenkins_url }}:{{ jenkins_port }}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)'
2020
return_content: yes
21+
status_code: 200,404
2122
register: jenkins_token
2223

2324
- name: Reload Jenkins if crumb is enabled

0 commit comments

Comments
 (0)