Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-44087

NPE after 'Track credentials of project's last build rather than project'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • git-plugin
    • Jenkins ver. 2.58
      Git client plugin 2.4.5
      Git plugin 3.3.0
      Git Parameter Plug-In 0.8.0

      Hi,
      I'm owner 'Git Parameter Plug-In', I use Git Client (GitSCM) to get branch list or tag from git repository,
      I do it befor build start. When job start first time I dont have "project.getLastBuild() this metod return null.

      java.lang.NullPointerException
      	at hudson.model.Fingerprint.addFor(Fingerprint.java:1023)
      	at com.cloudbees.plugins.credentials.CredentialsProvider.trackAll(CredentialsProvider.java:1458)
      	at com.cloudbees.plugins.credentials.CredentialsProvider.track(CredentialsProvider.java:1422)
      	at hudson.plugins.git.GitSCM.createClient(GitSCM.java:767)
      	at hudson.plugins.git.GitSCM.createClient(GitSCM.java:743)
      

       
      Commit
      JIRA in Git parameter

            markewaite Mark Waite
            klimas7 Boguslaw Klimas
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: