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

Gitlab ID could not be found but is set and works

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • credentials-plugin
    • Jenkins ver. 2.150.3

      Credentials Plugin 2.1.18

      I've updated my Jenkins installation to 2.150 and also plugins. I've set Gitlab token in Jenkins configuration and connection works without problem when I click on "Test connection" button.

      When I launch a pipeline Job, repository is correctly pulled but I've the following warning in console output:

      Warning: CredentialId "RENO-Gitlab" could not be found.
      

      Here is my pipeline code:

       checkout([
         $class: 'GitSCM',
          branches: [[name: "origin/dev"]],
          userRemoteConfigs: [[credentialsId: 'RENO-Gitlab', url: 'git@mygitlab.group/project.git']]
      ])
      

      So the Job starts well and works but this warning is displayed.

          [JENKINS-56537] Gitlab ID could not be found but is set and works

          Estrada Matthieu created issue -
          Estrada Matthieu made changes -
          Description Original: I've updated my Jenkins installation to 2.150 and also plugins. I've set Gitlab token in Jenkins configuration and connection works without problem when I click on "Test connection" button.

          When I launch a pipeline Job, repository is correctly pulled but I've the following warning in concole output:

          {code:java}
          Warning: CredentialId "RENO-Gitlab" could not be found.
          {code}

          Here is my pipeline code:

          {code:groovy}
           checkout([
             $class: 'GitSCM',
              branches: [[name: "origin/dev"]],
              userRemoteConfigs: [[credentialsId: 'RENO-Gitlab', url: 'git@mygitlab.group/project.git']]
          ])
          {code}

          So the Job starts well and works but this warning is displayed.
          New: I've updated my Jenkins installation to 2.150 and also plugins. I've set Gitlab token in Jenkins configuration and connection works without problem when I click on "Test connection" button.

          When I launch a pipeline Job, repository is correctly pulled but I've the following warning in console output:

          {code:java}
          Warning: CredentialId "RENO-Gitlab" could not be found.
          {code}

          Here is my pipeline code:

          {code:groovy}
           checkout([
             $class: 'GitSCM',
              branches: [[name: "origin/dev"]],
              userRemoteConfigs: [[credentialsId: 'RENO-Gitlab', url: 'git@mygitlab.group/project.git']]
          ])
          {code}

          So the Job starts well and works but this warning is displayed.

            Unassigned Unassigned
            algorys Estrada Matthieu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: