Failure to retrieve Team/Workspace from Bitbucket Cloud API on organization folder scan results in deleting all organization folder content
See original GitHub issueVersion 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:
- Created 2 years ago
- Reactions:6
- Comments:10
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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!
@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.