[JIRA] (JENKINS-59666) Crowd-2-plugin: Fail to login with user generated token

6 views
Skip to first unread message

zsolt.denes@gmail.com (JIRA)

unread,
Oct 4, 2019, 2:40:02 PM10/4/19
to jenkinsc...@googlegroups.com
Dénes Zsolt created an issue
 
Jenkins / Bug JENKINS-59666
Crowd-2-plugin: Fail to login with user generated token
Issue Type: Bug Bug
Assignee: Martin Spielmann
Components: crowd2-plugin
Created: 2019-10-04 18:39
Labels: plugin
Priority: Blocker Blocker
Reporter: Dénes Zsolt
  • Parameterized Builds for Jenkins version: 4.0.5 - latest
  • Bitbucket version: 6.7.1 - latest
  • Jenkins version: 2.190.1 - latest LTS
  • Crowd version: 6.6.0 - latest
  • Crowd-2-Jenkins-plugin version: 2.0.1 - latest
  • Any Jenkins or Bitbucket settings that could be relevant
  • We expreinced fail to start build from Bitbucket with the plugin.
  • FACTS:
  • We have used crowd to auth from the begining.
  • We use the Jenkins Crowd-2 plugin (henceforward: plugin) with a technikal user (for example robot).
  • We generated a token with this robot user and we used the plugin with pleasure.
  • After the last upgrade, we can not start build from bitbucket. :/
  • From my investigation, I came to the plugin not pushes the token to start the job, it uses the logged in username/sessionID. I though it, beacuse in the jenkins.log I found when I push on build manuially from bitbucket
    `jenkins.log` : `d.t.j.c.CrowdAuthenticationManager#authenticate: Application name and/or password are not valid.`
    BUT
    in the crowd log, I don't see the technical user (robot) tries, just only this line:
    `atlassian-crowd.log` : `[crowd.manager.application.ApplicationServiceGeneric] Invalid credentials for user zsolt.denes in directory XYZ, aborting˛`
    So we connected the bitbucket to jenkins with tecnical user robot *but* it tries to login in my name to start a build.

So right now, I don't know makes the mistake. Can You check, the jenkins's token process handling not changed? Or why needs the crowd auth after the technical user token?

Of course, I also wrote to the The Parameterized Builds for Jenkins  plugin developers at project gitter channel

Of course, if they not ansering i will put a bug report to [github|https://github.com/KyleLNicholls/parameterized-builds/issues/]

Thanks a lot your energy for this work!

Gr,
Zsolt

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

zsolt.denes@gmail.com (JIRA)

unread,
Oct 4, 2019, 2:44:02 PM10/4/19
to jenkinsc...@googlegroups.com
Dénes Zsolt updated an issue
Change By: Dénes Zsolt


Versions:
- _Parameterized Builds for Jenkins_ version: 4.0.5 - latest
- _Bitbucket_ version: 6.7.1 - latest
- _Jenkins_ version: 2.190.1 - latest LTS
- _Crowd_ version: 6.6.0 - latest
- _Crowd-2-Jenkins-plugin_ version: 2.0.1 - latest
- Any _Jenkins_ or _Bitbucket_ settings that could be relevant
- We expreinced fail to start build from Bitbucket with the plugin.


- FACTS Facts :
* We have used crowd to auth from the begining.
* We use the Jenkins Crowd-2 plugin (henceforward: plugin) with a technikal user (for example _robot_).
* We generated a token with this _robot_ user and we used the plugin with pleasure.
* After the last upgrade, we can not start build from bitbucket. :/
-
From my investigation, I came to the _plugin_ not pushes the token to start the job, it uses the logged in username/sessionID. I though it, beacuse in the jenkins.log I found when I push on build manuially from bitbucket
` {{ jenkins.log ` }} : ` {{ d.t.j.c.CrowdAuthenticationManager#authenticate: Application name and/or password are not valid. ` }}

BUT
in the crowd log, I don't see the technical user (_robot_) tries, just only this line:
` {{ atlassian-crowd.log ` }} : ` {{  [crowd.manager.application.ApplicationServiceGeneric] Invalid credentials for user zsolt.denes in directory XYZ, aborting ˛` }}

So we connected the bitbucket to jenkins with tecnical user _robot_ *
* but* *   it tries to login in my name to start a build.


So right now, I don't know makes the mistake. Can You check, the jenkins's token process handling not changed? Or why needs the crowd auth after the technical user token?

Of course, I also wrote to the The Parameterized Builds for Jenkins  plugin developers at [project gitter channel|https://gitter.im/parameterized-builds/Lobby?at=5d978e4037073b36a06e35f7]


Of course, if they not ansering i will put a bug report to [github|[https://github.com/KyleLNicholls/parameterized-builds/issues/]]

Thanks a lot your energy for this work!

Gr,
Zsolt

zsolt.denes@gmail.com (JIRA)

unread,
Oct 4, 2019, 2:45:02 PM10/4/19
to jenkinsc...@googlegroups.com
Dénes Zsolt updated an issue
Short bug desc: We expreinced fail to start build from Bitbucket with the plugin.

Versions:
- _Parameterized Builds for Jenkins_ version: 4.0.5 - latest
- _Bitbucket_ version: 6.7.1 - latest
- _Jenkins_ version: 2.190.1 - latest LTS
- _Crowd_ version: 6.6.0 - latest
- _Crowd-2-Jenkins-plugin_ version: 2.0.1 - latest
- Any _Jenkins_ or _Bitbucket_ settings that could be relevant
- We expreinced fail to start build from Bitbucket with the plugin.

Facts:
* We have used crowd to auth from the begining.
* We use the Jenkins Crowd-2 plugin (henceforward: plugin) with a technikal user (for example _robot_).
* We generated a token with this _robot_ user and we used the plugin with pleasure.
* After the last upgrade, we can not start build from bitbucket. :/

From my investigation, I came to the _plugin_ not pushes the token to start the job, it uses the logged in username/sessionID. I though it, beacuse in the jenkins.log I found when I push on build manuially from bitbucket
{{jenkins.log}} : {{d.t.j.c.CrowdAuthenticationManager#authenticate: Application name and/or password are not valid.}}
BUT
in the crowd log, I don't see the technical user (_robot_) tries, just only this line:
{{atlassian-crowd.log}} : {{ [crowd.manager.application.ApplicationServiceGeneric] Invalid credentials for user zsolt.denes in directory XYZ, aborting}}
So we connected the bitbucket to jenkins with tecnical user _robot_ *but* it tries to login in my name to start a build.


So right now, I don't know makes the mistake. Can You check, the jenkins's token process handling not changed? Or why needs the crowd auth after the technical user token?

Of course, I also wrote to the The Parameterized Builds for Jenkins  plugin developers at [project gitter channel|https://gitter.im/parameterized-builds/Lobby?at=5d978e4037073b36a06e35f7]

Of course, if they not ansering i will put a bug report to [github|[https://github.com/KyleLNicholls/parameterized-builds/issues/]]

Thanks a lot your energy for this work!

Gr,
Zsolt

zsolt.denes@gmail.com (JIRA)

unread,
Oct 8, 2019, 3:48:03 AM10/8/19
to jenkinsc...@googlegroups.com
Dénes Zsolt closed an issue as Won't Do
 

The problem was at the other Parameterized Builds for Jenkins plugin.

Resolution is here:
Is somebody gone into the same error:

The technical user have to set up thetoken at the [account page](https://github.com/KyleLNicholls/parameterized-builds#link-your-bitbucket-server-account-to-jenkins)

Change By: Dénes Zsolt
Status: Open Closed
Resolution: Won't Do
Reply all
Reply to author
Forward
0 new messages