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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Code Insights merge checking fail Edited

I implemented Code Insights result (ESLint report) as parameter to do merge checking and it shows that I do not have any errors of warnings regarding ESLint report, see picture below:

Selection_041.png

However, it said that one issue prevents me from merging the PR due to 'Report 'ESLint report' has not passed' which exactly strange since I do not have any error or so (Please neglect the other issues preventing me from merging the PR):

Selection_040.png

Moreover, I did put the correct report key on Project settings > Code Insights console such that: 

Selection_042.png

 

I wonder if I am missing something here since I followed all the steps shown here: https://confluence.atlassian.com/bitbucketserver/checks-for-merging-pull-requests-776640039.html?_ga=2.137328176.189084255.1594985895-2080399425.1585579922

I am using Bitbucket 7.1.4 here and I could use some help here :)

Steps I've already done: 

- Change the Annotations requirements, all gives the same result

- Check the console output on the build and make sure if the report correctly posted

Thanks in advance!

 

 

1 answer

1 accepted

0 votes
Answer accepted
Kristy Atlassian Team Jul 19, 2020

It seems that your code insight post doesn't have a 'result' field on the create report request. Otherwise it would show a "Passed" lozenge in the sidebar of that dialog.

For example, it would look like this:

Screen Shot 2020-07-20 at 10.26.22 am.png

 

What is the JSON payload that you are sending to Bitbucket Server? Does it have a 'result' field?

Hi,

thank you for the clear and insightful answer. I have checked the JSON payload and it is accurately missing 'result' field. It might be good to add this as well in here: https://developer.atlassian.com/server/bitbucket/tutorials-and-examples/code-insights-tutorial/ since I follow this really nice tutorial (Perhaps add this 'result' field in order to apply additional 'merge check' based on Code Insights result). In any case, the problem is now solved in my case :)

Kind regards

Like Kristy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,914 views 0 7
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