|
142 | 142 | retries: 3
|
143 | 143 | delay: 5
|
144 | 144 |
|
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 |
| - |
160 | 145 | - name: Create distribution for given version
|
161 | 146 | pulp.squeezer.file_distribution:
|
162 | 147 | pulp_url: "{{ remote_pulp_url }}"
|
|
167 | 152 | publication: "{{ publication_details.publication.pulp_href }}"
|
168 | 153 | content_guard: development
|
169 | 154 | state: present
|
170 |
| - when: latest_distribution_details.changed |
171 | 155 | register: distribution_result
|
172 | 156 | until: distribution_result is success
|
173 | 157 | retries: 3
|
|
180 | 164 | {{ artifact_tag }}/{{ found_files.files[0].path | basename }}"
|
181 | 165 | create: true
|
182 | 166 |
|
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 |
| - |
190 | 167 | - name: Print versioned path
|
191 | 168 | debug:
|
192 | 169 | msg: "New versioned path: {{ remote_pulp_url }}/pulp/content/{{ pulp_base_path }}/\
|
193 | 170 | {{ 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 |
201 | 171 |
|
202 | 172 | - name: Print version tag
|
203 | 173 | debug:
|
204 | 174 | msg: "New tag: {{ artifact_tag }}"
|
205 |
| - when: latest_distribution_details.changed |
0 commit comments