Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-75208] Checkout on bitbucket server fail with IllegalArgumentException "Name cannot contain '/'" #986

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

nfalco79
Copy link
Member

@nfalco79 nfalco79 commented Feb 5, 2025

Fix cloud client when file metadata return a path attribute that contains '/', for example 'scripts/Jenkinsfile'

@nfalco79
Copy link
Member Author

nfalco79 commented Feb 5, 2025

@ElectricWeasel could you install this incremental build and report log to understand which is the path that cause the issue?

@ElectricWeasel
Copy link

@nfalco79 Problem manifests when '/' appears in Multibranch Pipeline -> Configuration -> Build Configuration -> Mode - > "by Jenkinsfile" -> Script Path i.e. 'pipelines/Jenkinsfile_selfTest'. When I moved file 'Jenkinsfile_selfTest' to the top level directory job runs again without a problem.

Is this sufficient to pinpoint a bug?

@nfalco79
Copy link
Member Author

nfalco79 commented Feb 5, 2025

@nfalco79 Problem manifests when '/' appears in Multibranch Pipeline -> Configuration -> Build Configuration -> Mode - > "by Jenkinsfile" -> Script Path i.e. 'pipelines/Jenkinsfile_selfTest'. When I moved file 'Jenkinsfile_selfTest' to the top level directory job runs again without a problem.

Is this sufficient to pinpoint a bug?

Yes! Thanks

@nfalco79 nfalco79 force-pushed the JENKINS-75208-bis branch 3 times, most recently from 63d8014 to 5e617cd Compare February 5, 2025 20:06
@nfalco79 nfalco79 changed the title JENKINS-75208 Add log of path that contains / in exception [JENKINS-75208] Checkout on bitbucket server fail with IllegalArgumentException "Name cannot contain '/'" Feb 5, 2025

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
…tException "Name cannot contain '/'"

Fix Bitbucket Cloud client when getFile metadata has path attribute value that contains '/', for example 'scripts/Jenkinsfile' that cause a failure when build the SCMFile to return.
@nfalco79
Copy link
Member Author

nfalco79 commented Feb 6, 2025

@ElectricWeasel this patch should work

@nfalco79 nfalco79 merged commit bdca4ab into master Feb 6, 2025
19 checks passed
@nfalco79 nfalco79 deleted the JENKINS-75208-bis branch February 6, 2025 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants