Credentials config not initialized properly.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • None
    • Environment:
      Jenkins version 2.7.3, CRX plugin 1.6.2, Credentials Plugin version 2.10

      The credential plugin config is not initialized properly.

      I found that the code:
      "resolveCredentials();"
      need to be executed in the code in order for the credentials to load properly.
      I do not have enough knowledge abt your plugin to know exactly where to insert it, but I added the above line to the getCredentials method in the GraniteClientConfig.java file and it works fine for now.

      Error Stacktrace:

      Caused by: java.lang.AssertionError: Credentials were not resolved
      at org.jenkinsci.plugins.graniteclient.GraniteClientConfig.getCredentials(GraniteClientConfig.java:146)
      at org.jenkinsci.plugins.graniteclient.GraniteClientExecutor.execute(GraniteClientExecutor.java:87)
      at org.jenkinsci.plugins.graniteclient.GraniteClientExecutor.execute(GraniteClientExecutor.java:69)
      at org.jenkinsci.plugins.graniteclient.PackageChoiceParameterDefinition.getPackageList(PackageChoiceParameterDefinition.java:134)
      ... 164 more

            Assignee:
            Peter Grape
            Reporter:
            Peter Grape
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: