-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Jenkins: 2.89, bitbucket-branch-source-plugin: 2.2.6
Seems the change to the URL encoding causes problems when Git branch names contains slash. Branch name "feature/swagger_update" causes the below exception very early in the build.
[Bitbucket] Build result notified java.util.UnknownFormatConversionException: Conversion = 'F' at java.util.Formatter$FormatSpecifier.conversion(Formatter.java:2691) at java.util.Formatter$FormatSpecifier.<init>(Formatter.java:2720) at java.util.Formatter.parse(Formatter.java:2560) at java.util.Formatter.format(Formatter.java:2501) at java.util.Formatter.format(Formatter.java:2455) at java.lang.String.format(String.java:2940) at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getFileContent(BitbucketServerAPIClient.java:722) at com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.content(BitbucketSCMFile.java:81) at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:338) at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:104) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:263) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421)
This could maybe be cause by: https://github.com/jenkinsci/bitbucket-branch-source-plugin/commit/e75532a07cadc108936c12cf81b19582be24f332
Downgrading to 2.2.5 solves the problem.
- is duplicated by
-
JENKINS-47978 Lightweight checkout not working for branches that contain forward slash '/'
- Resolved