question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failure to retrieve Team/Workspace from Bitbucket Cloud API on organization folder scan results in deleting all organization folder content

See original GitHub issue

Version report

Jenkins and plugins versions report:

2.4.5
  • What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins Docker

Reproduction steps

  • Discovered as a result of #473
  • When running Scan Organization Folder, if the plugin fails to fetch Team/Workspace from the Bitbucket Cloud API it will result in assuming all repositories don’t exist anymore and will delete the folders and jobs for all of them
  • Also the error is not written to the log, which complicates the ability to debug the issue

Results

Expected result:

Scanned Repositories

Actual result:

All repositories removed from the Org folder.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:6
  • Comments:10

github_iconTop GitHub Comments

1reaction
cbxpcommented, Sep 3, 2021

It seems that’s a duplicate of https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473 that has been fixed in 2.9.11, please upgrade!

1reaction
KalleOlaviNiemitalocommented, Aug 26, 2021

@juliocesarscheidt yes it is using the wrong endpoint, but that is tracked as the separate issue https://github.com/jenkinsci/bitbucket-branch-source-plugin/issues/473. The error handling should be corrected regardless.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[JIRA] (JENKINS-54630) Scan Organization Folder fails when ...
I have a reporsitory in my Bitbucket account that was deleted but it's configured to redirect to an other URL, hence not 100%...
Read more >
Bitbucket Server Code Search is unable to find results from ...
To resolve this problem you first need to delete the Bitbucket Server index on the Elasticsearch server and then restart indexing in Bitbucket...
Read more >
Bitbucket branch source plugin fails to scan if jenkinsfile ...
By default, the plugin will try to read all the branches and which don't have JenkinsFile build will fail. To overcome it, for...
Read more >
Jira and Figma
Their team or Organization permissions; The file's sharing settings. In Figma. You can only embed one Figma file or prototype in each Jira...
Read more >
Atlassian Enterprise Product Showcase - Gold Solution Provider
On Premesis Servers and Atlassian Enterprise products give you more control over your data and security. ReleaseTEAM for all your Atlassian Need.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found