Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

My project key is invalid on jenkins even though the project key is correct.

when I am trying to integrate JiraTestResultReporter module in Jenkins , It says the project key is invalid even though it is correct.

2 answers

1 accepted

0 votes
Answer accepted
Dario B Atlassian Team Apr 03, 2020

Hello @Divyani ,

Welcome to the Atlassian Community!

Usually if a project exist but you cannot see it something went wrong with the authentication. 

Can you kindly let us know which steps are you following to integrate Jira with Jenkins and where (which step) do you get the error? 

 

Cheers,
Dario

Hi @Dario B 

I've followed the instructions from below link for integrating Jenkins with JIRA server & getting the error as "Invalid Project key" from the 'post build actions'-> Additional test report features-> JiraTestResultReporter.

I've provided the valid project key only but still it's giving the error. 

Link: https://github.com/jenkinsci/JiraTestResultReporter-plugin

Any suggestions will be really helpful. Thank you!2020-06-11_0057.png

Dario B Atlassian Team Jun 11, 2020

Hello @lokeshkambhoji , 

I am not sure if you are working with @Divyani  on the same project or if this is a different scenario. Can you please clarify?

Also, is this for Jira Server or Cloud?

I am asking because, as already mentioned, if the project key is not found even if it actually exists in Jira there are chances that the authentication failed. And, looking at the instructions you are following, I can see that they authenticate using username and password but this is not going to work in Jira Cloud.

Indeed, as you can read in below link, basic authentication with username and password has been deprecated long time ago in Jira Cloud and you should use basic authentication with email address and API Tonken instead.

 

For details please see:

 

Cheers,
Dario

Hi @Dario B ,

Thank you for your quick response, I am not working with Divyani.

I am using the JIRA cloud only and followed the below steps for authentication.

1. Provided the JIRA URL, username(provided the email address) & password(provided the API token generated from https://id.atlassian.com/manage/api-tokens)

2. Validated the settings from the configure systems in Jenkins and it's showing as 'jira'.

But from the post build actions i am getting the error message as 'Invalid project key'.please let me know how to get resolve this error.

2020-06-11_2306.png

@Divyani  and @lokeshkambhoji ,

After a bit of research I have found that this is a known issue that has already been fixed and waiting for release:

 

As you can see:

  • The status is:
    FIXED BUT UNRELEASED

     

    This change has been implemented and merged, but not yet released. 

 

Please follow the Jenkins bug ticket and set yourself as a watcher so that you will be updated as soon as the fix is released.

 

Cheers,
Dario

Hi @Dario B ,

Thank you for the update, it really helped me a lot.

Have a good weekend!

Like Dario B likes this

You are very welcome @lokeshkambhoji :) 

I am accepting my answer so that this thread will be marked as resolved. 

Have a nice weekend too!

Like lokeshkambhoji likes this

@Dario B  Just a quick question related to the Jenkins bug ticket - https://issues.jenkins-ci.org/browse/JENKINS-61171

In the above ticket 'JiraTestResultReporter' plugin version is mentioned as 2.0.7. I've downgraded the plugin version from 2.0.7 to 2.0.6 in Jenkins, still i am getting the same error.

Also downgraded the Jenkins version to 2.190.1.

Any suggestions will be really helpful! Thank you.

Dario B Atlassian Team Jun 16, 2020

@lokeshkambhoji 

As already mentioned, that plugin is still using usernames that have been deprecated since 2018 (due to GDPR) and that we finally switched off completely this February:

 

Therefore, downgrading to previous version is not gonna fix the issue. You have to wait for the new version (not using usernames) to be released.

 

Cheers,
Dario

Like lokeshkambhoji likes this

Is their any other plugin for this 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

495 views 16 17
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you