Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexus Download URLs changed #28

Open
jzielke84 opened this issue Mar 6, 2025 · 1 comment · May be fixed by #30
Open

Nexus Download URLs changed #28

jzielke84 opened this issue Mar 6, 2025 · 1 comment · May be fixed by #30

Comments

@jzielke84
Copy link

The URLs have changed (again...): https://help.sonatype.com/en/download.html

Fix would be:

- name: Register nexus package name
  ansible.builtin.set_fact:
    nexus_package: >-
      {{
        'nexus-' + nexus_version
        + '-java' + nexus_java_version | string
        + '-unix.tar.gz'
        if nexus_version is version_compare('3.67.1-01', '>=') and nexus_version is version_compare('3.70.1-02', '<=')
        else 'nexus-unix-x86-64-' + nexus_version + '.tar.gz'
      }}
@brianveltman
Copy link
Collaborator

Yes I noticed it as well last night..
Thanks for your proposed fix. I might add this as a temporarily fix/workaround. But i'm getting a bit annoyed by these url changes, so I'm thinking of creating a python module within this collection that automatically identifies the url based on a given version number.

It's probably gonna be something like this:

- name: Download given Nexus version
  cloudkrafter.nexus.download:
    state: latest # 'latest' to download the latest version, 'present' combined with a given version.
    version: 3.78.0-1 # only works when state is present.
    dest: /path/to/download/dir

This is in line with the refactoring goals im currently working on.

@brianveltman brianveltman linked a pull request Mar 6, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants