[JIRA] (JENKINS-58061) Can't configure SonarQube User Token (text field replaced with credentials drop-down).

51 views
Skip to first unread message

predatorvi@gmail.com (JIRA)

unread,
Jun 17, 2019, 10:23:03 PM6/17/19
to jenkinsc...@googlegroups.com
Jeff VIncent created an issue
 
Jenkins / Bug JENKINS-58061
Can't configure SonarQube User Token (text field replaced with credentials drop-down).
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: image-2019-06-17-20-12-20-160.png
Components: credentials-plugin
Created: 2019-06-18 02:22
Environment: Jenkins 2.176.1
Ubuntu 18.04 w/ Tomcat8
Credentials Plugin v2.2.0
"SonarQube Scanner for Jenkins" v2.9
Priority: Minor Minor
Reporter: Jeff VIncent

All tutorials I've seen for the SonarQube plugin show a text field to paste in the User Token. However, I'm seeing a Credentials dropdown for selecting and/or adding a token, except I'm unable to add a token in any form that works (screenshot attached) as nothing ever appears in the dropdown to select a defined token.

I'm unsure if this is due to and issue with the SonarQube plugin or Credentials plugin. (Sorry if I guessed wrongly).

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

predatorvi@gmail.com (JIRA)

unread,
Jun 17, 2019, 10:28:02 PM6/17/19
to jenkinsc...@googlegroups.com
Jeff VIncent updated an issue
Change By: Jeff VIncent
All tutorials I've seen for the SonarQube plugin show a text field to paste in the User Token. However, I'm seeing a Credentials dropdown for selecting and/or adding a token, except I'm unable to add a token in any form that works (screenshot attached) as nothing ever appears in the dropdown to select a defined token.

I'm unsure if this is due to and an issue with the SonarQube plugin or Credentials plugin. (Sorry if I guessed wrongly).

 

!image-2019-06-17-20-12-20-160.png!

 

alexiseliudrdz@gmail.com (JIRA)

unread,
Jun 26, 2019, 12:45:03 PM6/26/19
to jenkinsc...@googlegroups.com
alexis villegas commented on Bug JENKINS-58061
 
Re: Can't configure SonarQube User Token (text field replaced with credentials drop-down).

Same Issue...I was looking to add a new credential for sonarqube like I did for SSH but there is no option for that.

alexiseliudrdz@gmail.com (JIRA)

unread,
Jun 26, 2019, 12:50:03 PM6/26/19
to jenkinsc...@googlegroups.com
alexis villegas edited a comment on Bug JENKINS-58061
Same Issue...I was looking to add a new credential for sonarqube like I did for SSH but there is no option for that.


 

EDIT:

 

I follow the configuration for this url [https://groups.google.com/forum/#!topic/jenkinsci-users/ONnVPSIExH4]

 

basically on the credentials page you have to add the token as secret text and give it an ID. after that the ID will show up on the dropdown for sonarqube token option.

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:24:02 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:26:01 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:26:02 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:28:03 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:32:02 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:34:02 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:36:03 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:37:02 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:41:02 PM7/31/19
to jenkinsc...@googlegroups.com
Jeff VIncent commented on Bug JENKINS-58061
 
Re: Can't configure SonarQube User Token (text field replaced with credentials drop-down).

I do have it working with a "secret text" token.

However, there is an issue with the Credentials integration because if I attempt to click the "Add..." button from the job configuration page, it either does nothing, or allows me to enter the new credential information but won't actually save it.

##01 - Click Add -> Jenkins##

##02 - Add new Super Secret Text Token##

 

###03 - Attempt to select (no SuperSecretTextTestToken listed)###

 

###04 - Check Credential store###

(no SuperSecretTextTestToken listed)

I can add it if I go to the Credential manager first.  

I do see a warning however, in this case that even if I pick a valid "secret text" credential for SonarQube even though the secret text credential works fine:

 

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:41:03 PM7/31/19
to jenkinsc...@googlegroups.com

predatorvi@gmail.com (JIRA)

unread,
Jul 31, 2019, 2:42:03 PM7/31/19
to jenkinsc...@googlegroups.com
Jeff VIncent edited a comment on Bug JENKINS-58061
I do have it working with a "secret text" token.

However, there is an issue with the Credentials integration because if I attempt to click the "Add..." button from the job configuration page, it either does nothing, or allows me to enter the new credential information but won't actually save it.

##01 - Click Add -> Jenkins##

      !image-2019-07-31-12-27-28-291.png|width=646,height=133!


##02 - Add new Super Secret Text Token##

      !image-2019-07-31-12-23-33-121.png|width=629,height=488!


 

###03 - Attempt to select (no SuperSecretTextTestToken listed)###

      !image-2019-07-31-12-36-07-816.png|width=644,height=132!


 

###04 - Check Credential store###

(no SuperSecretTextTestToken listed)

      !image-2019-07-31-12-33-57-056.png|width=515,height=370!

      !image-2019-07-31-12-31-11-944.png|width=374,height=215!


I can add it if I go to the Credential manager first.  

I do see a warning however, in this case that even if I pick a valid "secret text" credential for SonarQube even though the secret text credential works fine:

 

      !image-2019-07-31-12-40-23-490.png!

heshucai222@163.com (JIRA)

unread,
Sep 18, 2019, 9:37:02 PM9/18/19
to jenkinsc...@googlegroups.com

Same Issue...

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

heshucai222@163.com (JIRA)

unread,
Sep 18, 2019, 9:37:03 PM9/18/19
to jenkinsc...@googlegroups.com
shucai he updated an issue
 
Change By: shucai he
Attachment: image-2019-09-19-09-36-21-510.png

alexandrumarcu@gmail.com (JIRA)

unread,
Oct 2, 2019, 2:08:03 AM10/2/19
to jenkinsc...@googlegroups.com
Marcu Alexandru commented on Bug JENKINS-58061
 
Re: Can't configure SonarQube User Token (text field replaced with credentials drop-down).

Hello there,

I got into the same situation, i created an account to write the solution:

  • uninstall Sonarqube 2.9 plugin (restart jenkins);
  • go to https://updates.jenkins.io/download/plugins/sonar/   and download 2.8.1 version of the same plugin;
  • then go to Jenkins >> Manage Plugins >> Advanced >> Upload Plugin >> Choose file >> Restart Jenkins and it will work ( at least for me it solved the same issue)

PS: I had used lts, then changed to Jenkins ver. 2.191 hoping that will solve it but it didn't but i did not changed to lts so the above steps are done on 2.191 with Credentials Plugin 2.3.0 and Plain Credentials Plugin 1.5.0

m.rosset@hotmail.com (JIRA)

unread,
Dec 11, 2019, 5:11:02 AM12/11/19
to jenkinsc...@googlegroups.com

Hello,

Is this issue will be resolved ? Or a workaround will be explained ? I can't configure Sonar Scanner without downgrade plugins versions.

Thanks,

ian.williams1@telus.com (JIRA)

unread,
Dec 11, 2019, 5:36:02 AM12/11/19
to jenkinsc...@googlegroups.com

Jeff VIncent, wondering why this is not flagged as Component "sonar" as well? That might get the attention of the SonarQube team.

Reply all
Reply to author
Forward
0 new messages