Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Git Jenkins(BlueOcean)未能构建在BitBucket中创建的PR_Git_Jenkins_Jenkins Pipeline_Bitbucket_Jenkins Blueocean - Fatal编程技术网

Git Jenkins(BlueOcean)未能构建在BitBucket中创建的PR

Git Jenkins(BlueOcean)未能构建在BitBucket中创建的PR,git,jenkins,jenkins-pipeline,bitbucket,jenkins-blueocean,Git,Jenkins,Jenkins Pipeline,Bitbucket,Jenkins Blueocean,在将Jenkins升级到2.235.5和Git2.28.0之后,我看到在BitBukSet中创建的PR上的构建失败,并出现以下错误 Branch indexing ERROR: Could not do lightweight checkout, falling back to heavyweight java.io.FileNotFoundException: URL: /rest/api/1.0/**repodetails**/browse/Jenkinsfile?at=pull-reque

在将Jenkins升级到2.235.5和Git2.28.0之后,我看到在BitBukSet中创建的PR上的构建失败,并出现以下错误

Branch indexing
ERROR: Could not do lightweight checkout, falling back to heavyweight
java.io.FileNotFoundException: URL: /rest/api/1.0/**repodetails**/browse/Jenkinsfile?at=pull-requests%2F823%2Fmerge&start=0&limit=500
at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:834)
at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getFileContent(BitbucketServerAPIClient.java:1129)
at com.cloudbees.jenkins.plugins.bitbucket.filesystem.BitbucketSCMFile.content(BitbucketSCMFile.java:98)
at jenkins.scm.api.SCMFile.contentAsString(SCMFile.java:335)
at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:107)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)

这是Jenkins还是BitBucket的问题?有人有相同的问题吗?

我必须在配置系统下为bitbucket插件启用api选项检查

有人能帮我解决这个问题吗?哪种选择?你能添加屏幕截图吗?@VonC添加了屏幕截图
 git.exe checkout -f dsadsdsaddsb2610278033e8sajdgasjgda # timeout=10
ERROR: Checkout failed
hudson.plugins.git.GitException: Command "git.exe checkout -f dsadsdsaddsb2610278033e8sajdgasjgda" returned status code 128:
stdout: 
stderr: fatal: reference is not a tree: dsadsdsaddsb2610278033e8sajdgasjgda
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2450)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$1100(CliGitAPIImpl.java:84)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2767)
Caused: hudson.plugins.git.GitException: Could not checkout dsadsdsaddsb2610278033e8sajdgasjgda
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.execute(CliGitAPIImpl.java:2791)
at jenkins.plugins.git.MergeWithGitSCMExtension.checkout(MergeWithGitSCMExtension.java:144)
at jenkins.plugins.git.MergeWithGitSCMExtension.decorateRevisionToBuild(MergeWithGitSCMExtension.java:110)
at hudson.plugins.git.GitSCM.determineRevisionToBuild(GitSCM.java:1063)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1168)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:125)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:155)
at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:142)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:309)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)