Skip to content

Commit eb5f9c6

Browse files
Disable latest paths
1 parent 87924f9 commit eb5f9c6

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

etc/kayobe/ansible/pulp-artifact-upload.yml

-31
Original file line numberDiff line numberDiff line change
@@ -142,21 +142,6 @@
142142
retries: 3
143143
delay: 5
144144

145-
- name: Update distribution for latest version
146-
pulp.squeezer.file_distribution:
147-
pulp_url: "{{ remote_pulp_url }}"
148-
username: "{{ remote_pulp_username }}"
149-
password: "{{ remote_pulp_password }}"
150-
name: "{{ repository_name }}_latest"
151-
base_path: "{{ pulp_base_path }}/latest"
152-
publication: "{{ publication_details.publication.pulp_href }}"
153-
content_guard: development
154-
state: present
155-
register: latest_distribution_details
156-
until: latest_distribution_details is success
157-
retries: 3
158-
delay: 5
159-
160145
- name: Create distribution for given version
161146
pulp.squeezer.file_distribution:
162147
pulp_url: "{{ remote_pulp_url }}"
@@ -167,7 +152,6 @@
167152
publication: "{{ publication_details.publication.pulp_href }}"
168153
content_guard: development
169154
state: present
170-
when: latest_distribution_details.changed
171155
register: distribution_result
172156
until: distribution_result is success
173157
retries: 3
@@ -180,26 +164,11 @@
180164
{{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
181165
create: true
182166

183-
- name: Update new artifacts file with latest path
184-
lineinfile:
185-
path: /tmp/updated_artifacts.txt
186-
line: "{{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
187-
latest/{{ found_files.files[0].path | basename }}"
188-
when: latest_distribution_details.changed
189-
190167
- name: Print versioned path
191168
debug:
192169
msg: "New versioned path: {{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
193170
{{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
194-
when: latest_distribution_details.changed
195-
196-
- name: Print latest path
197-
debug:
198-
msg: "New latest path: {{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
199-
latest/{{ found_files.files[0].path | basename }}"
200-
when: latest_distribution_details.changed
201171

202172
- name: Print version tag
203173
debug:
204174
msg: "New tag: {{ artifact_tag }}"
205-
when: latest_distribution_details.changed

0 commit comments

Comments
 (0)