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

New jobs created from Blue Ocean are tied with username that created them

    XMLWordPrintable

Details

    • 1.13.1

    Description

      A colleague (let's say, username cadana) created a Multibranch Pipeline job from Blue Ocean, with Github SCM (username for SCM is not tied in any way with cadana) and now he left the company. I had to copy the job manually to "recreate" it, to lose the first owner that no longer exists to fix this error.

      A build log from a job:

      Started by user Laszlo, William Daniel
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      org.acegisecurity.userdetails.UsernameNotFoundException: User cadana not found in directory.
       at org.acegisecurity.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:126)
       at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1314)
       at hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:1251)
       at jenkins.security.ImpersonatingUserDetailsService.loadUserByUsername(ImpersonatingUserDetailsService.java:32)
       at hudson.model.User.getUserDetailsForImpersonation(User.java:349)
       at hudson.model.User.impersonate(User.java:329)
       at io.jenkins.blueocean.rest.impl.pipeline.credential.BlueOceanCredentialsProvider.getCredentials(BlueOceanCredentialsProvider.java:76)
       at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:413)
       at com.cloudbees.plugins.credentials.CredentialsProvider.lookupCredentials(CredentialsProvider.java:532)
       at org.jenkinsci.plugins.github_branch_source.Connector.lookupScanCredentials(Connector.java:234)
       at org.jenkinsci.plugins.github_branch_source.GitHubSCMSource.retrieve(GitHubSCMSource.java:1399)
       at jenkins.scm.api.SCMSource.fetch(SCMSource.java:566)
       at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:95)
       at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

      Attachments

        Activity

          People

            halkeye Gavin Mogan
            wlaszlo William Laszlo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: