Skip to content

Commit

Permalink
Fix issue in older jenkins versions that to not set a cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Richter committed Aug 3, 2020
1 parent 0d785cb commit f9f30cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/gather_jenkins_facts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
- name: "gather_jenkins_facts : set jenkins csrf crumb."
set_fact:
jenkins_facts_csrf_crumb: "{{ _jenkins_facts_csrf_crumb_result.json.crumb }}"
jenkins_facts_cookie: "{{ _jenkins_facts_csrf_crumb_result.set_cookie }}"
jenkins_facts_cookie: "{{ _jenkins_facts_csrf_crumb_result.set_cookie | default(None) }}"

when: jenkins_facts_csrf_enabled | bool

Expand Down

0 comments on commit f9f30cc

Please sign in to comment.