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

Cannot get Artifactory instance when default credentials are not set #928

Open
RecuencoJones opened this issue Mar 8, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RecuencoJones
Copy link

RecuencoJones commented Mar 8, 2024

Describe the bug

Artifactory.server('artifactory-server-id') throws NullPointerException if default deployer credentials are set to - none -.

To Reproduce

  • From Jenkins configuration, go to JFrog section
  • Tick Use the Credentials Plugin
  • Add an Artifactory server instance with only the server url and an instance id (artifactory-server-id).
  • Create a folder
  • Create usernamePassword credentials within folder (some-folder-scoped-credentials)
  • Attempt to use it in a scripted pipeline:
    def server = Artifactory.server('artifactory-server-id')
    
    server.credentialsId = 'some-folder-scoped-credentials'

Expected behavior

A new artifactory server instance using given folder credentials

Versions

  • Jenkins Artifactory plugin version: 3.18.3
  • Jenkins operating system: Ubuntu 18 (docker)
  • Artifactory Version: 7.49.6 (Commercial)
@RecuencoJones RecuencoJones added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant