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

Fix missing primary clone links in BitbucketSCMSource when retrieve branches and pull requests using REST APIs #912

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

nfalco79
Copy link
Member

This fix the issue reported in comment #898 (comment) that prevent to update bitbucket plugin version in BOM and cause regression in Blue Ocean unit test.

To test again using this incremential build in blue ocean plugin on io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BbCloudPipelineCreateRequestTest

@nfalco79 nfalco79 changed the title Fix missing clone links in BitbucketSCMSource when retrieve branches and pull requests using REST APIs Fix missing primary clone links in BitbucketSCMSource when retrieve branches and pull requests using REST APIs Nov 14, 2024
@nfalco79 nfalco79 added the bug label Nov 14, 2024
@nfalco79
Copy link
Member Author

@basil
Test for Blue Ocen passes

[INFO] --- surefire:3.2.5:test (default-test) @ blueocean-bitbucket-pipeline ---
[INFO] Using auto detected provider org.apache.maven.surefire.junitplatform.JUnitPlatformProvider
[WARNING] The system property java.awt.headless is configured twice! The property appears in <argLine/> and any of <systemPropertyVariables/>, <systemProperties/> or user property.
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BbCloudPipelineCreateRequestTest
=== Starting createPipeline(io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BbCloudPipelineCreateRequestTest)
   0.064 [id=28]        INFO    o.jvnet.hudson.test.WarExploder#explode: Exploding d:\Data\.m2\repository\org\jenkins-ci\main\jenkins-war\2.462.3\jenkins-war-2.462.3.war into D:\git\blueocean-plugin\blueocean-bitbucket-pipeline\target\jenkins-for-test
   1.686 [id=28]        INFO    o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:54521/jenkins/
   4.427 [id=47]        INFO    jenkins.InitReactorRunner$1#onAttained: Started initialization
  17.557 [id=84]        INFO    jenkins.InitReactorRunner$1#onAttained: Listed all plugins
  17.572 [id=76]        INFO    j.b.api.BouncyCastlePlugin#start: D:\git\blueocean-plugin\blueocean-bitbucket-pipeline\target\tmp\j h15335600634896574956\plugins\bouncycastle-api\WEB-INF\optional-lib not found; for non RealJenkinsRule this is fine and can be ignored.
  37.301 [id=53]        INFO    jenkins.InitReactorRunner$1#onAttained: Prepared all plugins
  37.348 [id=77]        INFO    jenkins.InitReactorRunner$1#onAttained: Started all plugins
  37.348 [id=83]        INFO    jenkins.InitReactorRunner$1#onAttained: Augmented all extensions
  39.725 [id=76]        INFO    jenkins.InitReactorRunner$1#onAttained: System config loaded
  39.725 [id=84]        INFO    jenkins.InitReactorRunner$1#onAttained: System config adapted
  39.725 [id=64]        INFO    jenkins.InitReactorRunner$1#onAttained: Loaded all jobs
  39.738 [id=59]        INFO    jenkins.InitReactorRunner$1#onAttained: Configuration for all jobs updated
  39.757 [id=65]        INFO    jenkins.InitReactorRunner$1#onAttained: Completed initialization
Nov 14, 2024 1:35:57 PM com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource afterSave
SEVERE: Could not determine clone links of vivektestteam/pipeline-demo-test on http://localhost:54524 for org.jenkinsci.plugins.workflow.multibranch.WorkflowMultiBranchProject@299d034a[pipeline1] falling back to generated links
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 403: Forbidden.
HttpResponseProxy{HTTP/1.1 403 Forbidden [Content-Security-Policy-Report-Only: script-src 'unsafe-eval' 'strict-dynamic' 'unsafe-inline' 'self' http: https: https://d301sr5gafysq2.cloudfront.net; style-src 'self' 'unsafe-inline' https://aui-cdn.atlassian.com https://d301sr5gafysq2.cloudfront.net; report-uri https://web-security-reports.services.atlassian.com/csp-report/bb-website; default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob: *; connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net; object-src about:; base-uri 'self', Server: nginx, Vary: Accept-Language, Cookie, Content-Type: text/plain, Strict-Transport-Security: max-age=31536000; includeSubDomains; preload, Date: Fri, 24 Apr 2020 22:22:55 GMT, X-Served-By: app-1104, Content-Language: en, X-Static-Version: e0aa900cf99a, ETag: "1f632c994b7bb89d4663d94ea462799f", X-Render-Time: 0.129491090775, X-Version: e0aa900cf99a, X-Request-Count: 3055, X-Frame-Options: SAMEORIGIN, Matched-Stub-Id: 4e903afb-22db-3476-8bbb-6944e2d95817, Transfer-Encoding: chunked] ResponseEntityProxy{[Content-Type: text/plain,Chunked: true]}}
        at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:987)
        at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:953)
        at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRepository(BitbucketServerAPIClient.java:451)
        at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.gatherPrimaryCloneLinks(BitbucketSCMSource.java:547)
        at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.afterSave(BitbucketSCMSource.java:538)
        at io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest.create(AbstractMultiBranchCreateRequest.java:81)
        at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:54)
        at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:50)
        at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
        at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:416)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:429)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:211)
        at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:37)
        at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
        at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:138)
        at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:31)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$2.doDispatch(MetaClass.java:244)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:61)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:791)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:747)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:253)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
        at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:163)
        at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160)
        at jenkins.util.HttpServletFilter$1.doFilter(HttpServletFilter.java:76)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160)
        at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:79)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:166)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at jenkins.ErrorAttributeFilter.doFilter(ErrorAttributeFilter.java:29)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:154)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94)
        at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:145)
        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:31)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:569)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1580)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
        at org.eclipse.jetty.server.Server.handle(Server.java:563)
        at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
        at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)
        at java.base/java.lang.Thread.run(Thread.java:833)

Nov 14, 2024 1:35:57 PM io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketPipelineCreateRequest repoHasJenkinsFile
WARNING: Error detecting Jenkinsfile: HTTP request error. Status: 403: Forbidden.
HttpResponseProxy{HTTP/1.1 403 Forbidden [Content-Security-Policy-Report-Only: script-src 'unsafe-eval' 'strict-dynamic' 'unsafe-inline' 'self' http: https: https://d301sr5gafysq2.cloudfront.net; style-src 'self' 'unsafe-inline' https://aui-cdn.atlassian.com https://d301sr5gafysq2.cloudfront.net; report-uri https://web-security-reports.services.atlassian.com/csp-report/bb-website; default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob: *; connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net; object-src about:; base-uri 'self', Server: nginx, Vary: Accept-Language, Cookie, Content-Type: text/plain, Strict-Transport-Security: max-age=31536000; includeSubDomains; preload, Date: Fri, 24 Apr 2020 22:22:55 GMT, X-Served-By: app-1104, Content-Language: en, X-Static-Version: e0aa900cf99a, ETag: "1f632c994b7bb89d4663d94ea462799f", X-Render-Time: 0.129491090775, X-Version: e0aa900cf99a, X-Request-Count: 3055, X-Frame-Options: SAMEORIGIN, Matched-Stub-Id: 4e903afb-22db-3476-8bbb-6944e2d95817, Transfer-Encoding: chunked] ResponseEntityProxy{[Content-Type: text/plain,Chunked: true]}}
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRequestException: HTTP request error. Status: 403: Forbidden.
HttpResponseProxy{HTTP/1.1 403 Forbidden [Content-Security-Policy-Report-Only: script-src 'unsafe-eval' 'strict-dynamic' 'unsafe-inline' 'self' http: https: https://d301sr5gafysq2.cloudfront.net; style-src 'self' 'unsafe-inline' https://aui-cdn.atlassian.com https://d301sr5gafysq2.cloudfront.net; report-uri https://web-security-reports.services.atlassian.com/csp-report/bb-website; default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob: *; connect-src bitbucket.org *.bitbucket.org bb-inf.net *.bb-inf.net analytics.atlassian.com as.atlassian.com api-private.stg.atlassian.com api-private.atlassian.com cofs.staging.public.atl-paas.net cofs.prod.public.atl-paas.net intake.opbeat.com api.media.atlassian.com api.segment.io xid.statuspage.io xid.atlassian.com xid.sourcetreeapp.com bam.nr-data.net sentry.io bqlf8qjztdtr.statuspage.io https://d301sr5gafysq2.cloudfront.net; object-src about:; base-uri 'self', Server: nginx, Vary: Accept-Language, Cookie, Content-Type: text/plain, Strict-Transport-Security: max-age=31536000; includeSubDomains; preload, Date: Fri, 24 Apr 2020 22:22:55 GMT, X-Served-By: app-1104, Content-Language: en, X-Static-Version: e0aa900cf99a, ETag: "1f632c994b7bb89d4663d94ea462799f", X-Render-Time: 0.129491090775, X-Version: e0aa900cf99a, X-Request-Count: 3055, X-Frame-Options: SAMEORIGIN, Matched-Stub-Id: 4e903afb-22db-3476-8bbb-6944e2d95817, Transfer-Encoding: chunked] ResponseEntityProxy{[Content-Type: text/plain,Chunked: true]}}
        at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:987)
        at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRequest(BitbucketServerAPIClient.java:953)
        at com.cloudbees.jenkins.plugins.bitbucket.server.client.BitbucketServerAPIClient.getRepository(BitbucketServerAPIClient.java:451)
        at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.gatherPrimaryCloneLinks(BitbucketSCMSource.java:547)
        at com.cloudbees.jenkins.plugins.bitbucket.BitbucketSCMSource.retrieve(BitbucketSCMSource.java:569)
        at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:372)
        at jenkins.scm.api.SCMSource.fetch(SCMSource.java:302)
        at io.jenkins.blueocean.blueocean_bitbucket_pipeline.BitbucketPipelineCreateRequest.repoHasJenkinsFile(BitbucketPipelineCreateRequest.java:112)
        at io.jenkins.blueocean.scm.api.AbstractMultiBranchCreateRequest.create(AbstractMultiBranchCreateRequest.java:83)
        at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:54)
        at io.jenkins.blueocean.rest.model.BluePipelineContainer.create(BluePipelineContainer.java:50)
        at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:732)
        at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:416)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:429)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:211)
        at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:37)
        at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
        at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:138)
        at org.kohsuke.stapler.IndexDispatcher.dispatch(IndexDispatcher.java:31)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$2.doDispatch(MetaClass.java:244)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:61)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:791)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.MetaClass$9.dispatch(MetaClass.java:548)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:827)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:965)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:747)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:253)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:584)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)
        at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1665)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:163)
        at io.jenkins.blueocean.ResourceCacheControl.doFilter(ResourceCacheControl.java:134)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160)
        at jenkins.util.HttpServletFilter$1.doFilter(HttpServletFilter.java:76)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160)
        at io.jenkins.blueocean.auth.jwt.impl.JwtAuthenticationFilter.doFilter(JwtAuthenticationFilter.java:79)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:160)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:166)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at jenkins.ErrorAttributeFilter.doFilter(ErrorAttributeFilter.java:29)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:154)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:94)
        at jenkins.security.AcegiSecurityExceptionFilter.doFilter(AcegiSecurityExceptionFilter.java:52)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:54)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:126)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:120)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:100)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:145)
        at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:101)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:227)
        at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:221)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:97)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:117)
        at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
        at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:63)
        at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:99)
        at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:111)
        at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:172)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:53)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:86)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:31)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:38)
        at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:202)
        at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:569)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1580)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553)
        at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)
        at org.eclipse.jetty.server.Server.handle(Server.java:563)
        at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)
        at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)
        at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)
        at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199)
        at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)
        at java.base/java.lang.Thread.run(Thread.java:833)

Nov 14, 2024 1:35:57 PM hudson.lifecycle.Lifecycle onStatusUpdate
INFO: Stopping Jenkins
Nov 14, 2024 1:35:57 PM hudson.lifecycle.Lifecycle onStatusUpdate
INFO: Jenkins stopped
Nov 14, 2024 1:35:57 PM org.jvnet.hudson.test.TemporaryDirectoryAllocator dispose
INFO: deleting D:\git\blueocean-plugin\blueocean-bitbucket-pipeline\target\tmp\j h15335600634896574956
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.22 s -- in io.jenkins.blueocean.blueocean_bitbucket_pipeline.cloud.BbCloudPipelineCreateRequestTest
[INFO]
[INFO] Results:
[INFO]
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0

@nfalco79 nfalco79 merged commit 5b9b36e into master Nov 14, 2024
19 checks passed
@nfalco79 nfalco79 deleted the feature/primary_clone_links branch November 14, 2024 12:37
@basil
Copy link
Member

basil commented Nov 14, 2024

Thanks! BOM tests are passing in jenkinsci/bom#3970.

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.

2 participants