Skip to content

Conversation

dcendents
Copy link
Contributor

  • [x ] Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • [ x] Ensure that the pull request title represents the desired changelog entry
  • [ x] Please describe what you did
  • [ x] Link to relevant issues in GitHub or Jira
  • [ x] Link to relevant pull requests, esp. upstream and downstream changes
  • [ x] Ensure you have provided tests - that demonstrates feature works or fixes the issue

Updating all id fields from int to long, required once the following gitlab-api plugin PR gets merged:

jenkinsci/gitlab-api-plugin#7

Note: I have added the jenkins snapshot repository and using the snapshot version (that I deployed myself), they will need to be removed/updated after the gitlab-api-plugin PR is merged and release.

@dcendents
Copy link
Contributor Author

@jetersen the gitlab-api plugin and this one don't seem to do incremental builds like jersey2-api was doing.

Any way we can have the build pass with a SNAPSHOT depoendency?

All I can say is it worked for me, never something you like a dev to say! ;-)

pom.xml Outdated
Comment on lines 266 to 267
<exclude>com.damnhandy:handy-uri-templates</exclude>
<exclude>org.jenkins-ci.main:jenkins-test-harness</exclude>
Copy link
Member

@jetersen jetersen Apr 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps better to introduce new version of parent pom and bom in separate PR?

This should not be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well I though it is required, to use the same minimum version as dependent plugins, otherwise the gitlab-branch-cource plugin will be made available to users of older jenkins without the new gitlab-api plugin.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jenkins version != parent pom :)

Also 2.263.4 was released 2021-02-10 with plenty security issues. I'd hope more users are using a newer Jenkins version.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, gitlab-branch-source-plugin is currently using plugin parent POM 4.1, which is from April 2020. That is a very old build toolchain. I'd suggest using something closer to when the minimum Jenkins version (i.e. 2.289.3) was released. 4.25 should be fairly easy to upgrade to. 4.26 had some breaking changes, so you may want to take one small bite at a time. :-)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I filed #189 to try and make Daniel's life a little easier.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged, @dcendents you should be able to rebase and remove these lines 😄

@jetersen jetersen force-pushed the update_gitlab4j_api branch from e3ae723 to c82a8ae Compare April 16, 2022 18:17
@jetersen
Copy link
Member

Sometimes I don't understand require upper bound deps 😖

[2022-04-16T18:46:54.287Z] Failed while enforcing RequireUpperBoundDeps. The error(s) are [
[2022-04-16T18:46:54.287Z] Require upper bound dependencies error for io.jenkins.plugins:jersey2-api:2.35-4 paths to dependency are:
[2022-04-16T18:46:54.287Z] +-io.jenkins.plugins:gitlab-branch-source:1.5.10-rc622.4c7f9a_9d30d6
[2022-04-16T18:46:54.287Z]   +-io.jenkins.plugins:gitlab-api:1.0.7-rc70.e0375a_6346b_c
[2022-04-16T18:46:54.287Z]     +-io.jenkins.plugins:jersey2-api:2.35-4 (managed) <-- io.jenkins.plugins:jersey2-api:2.35-6
[2022-04-16T18:46:54.287Z] ]

@basil
Copy link
Member

basil commented Apr 18, 2022

I think @jetersen and I are already on the same page here, but to be explicit, I think the next steps here are to:

  • Update to the latest BOM
  • Revert commit 6fbd0fc
  • Remove the explicit version for jersey2-api
  • Release gitlab-api and update the version to the released version

@basil
Copy link
Member

basil commented Apr 18, 2022

Oh and we can also remove the direct dependency on jackson2-api since we don't import any of its classes and it is already a transitive dependency of gitlab-api-plugin.

@jetersen jetersen merged commit 76ac293 into jenkinsci:master Apr 18, 2022
@jetersen jetersen added the enhancement New feature or request label Apr 18, 2022
@dcendents
Copy link
Contributor Author

@basil @jetersen Sorry guys I was not available this weekend but I can see you did all the work.
Thanks a lot

@basil
Copy link
Member

basil commented Apr 18, 2022

Thank you for all the help with this effort @dcendents. It is highly appreciated.

A few remaining questions from my side:

@dcendents
Copy link
Contributor Author

A few remaining questions from my side:

  • Can someone verify that the latest gitlab-api and gitlab-branch-source releases are working?

I just updated them on our production jenkins server, so far so good but it's a bank holiday to really quiet, I'll be able to properly check it tomorrow.

We don't use this plugin so it is not easy for me to test it either

I might have a look at it but not for a few days at least.

@dcendents dcendents deleted the update_gitlab4j_api branch April 19, 2022 15:46
@readonlyuser1
Copy link

readonlyuser1 commented Apr 19, 2022

Jenkins 2.319.1

JavaScript GUI Lib: ACE Editor bundle plugin (ace-editor): 1.1
OWASP Markup Formatter Plugin (antisamy-markup-formatter): 2.7
Apache HttpComponents Client 4.x API Plugin (apache-httpcomponents-client-4-api): 4.5.13-1.0
App Center (appcenter): 0.11.1
Authentication Tokens API Plugin (authentication-tokens): 1.4
Authorize Project (authorize-project): 1.4.0
Autofavorite for Blue Ocean (blueocean-autofavorite): 1.2.4
Bitbucket Pipeline for Blue Ocean (blueocean-bitbucket-pipeline): 1.25.2
Common API for Blue Ocean (blueocean-commons): 1.25.3
Config API for Blue Ocean (blueocean-config): 1.25.2
Blue Ocean Core JS (blueocean-core-js): 1.25.3
Dashboard for Blue Ocean (blueocean-dashboard): 1.25.2
Display URL for Blue Ocean (blueocean-display-url): 2.4.1
Events API for Blue Ocean (blueocean-events): 1.25.2
Git Pipeline for Blue Ocean (blueocean-git-pipeline): 1.25.3
GitHub Pipeline for Blue Ocean (blueocean-github-pipeline): 1.25.3
i18n for Blue Ocean (blueocean-i18n): 1.25.3
JWT for Blue Ocean (blueocean-jwt): 1.25.3
Personalization for Blue Ocean (blueocean-personalization): 1.25.2
Pipeline implementation for Blue Ocean (blueocean-pipeline-api-impl): 1.25.3
Blue Ocean Pipeline Editor (blueocean-pipeline-editor): 1.25.2
Pipeline SCM API for Blue Ocean (blueocean-pipeline-scm-api): 1.25.3
REST Implementation for Blue Ocean (blueocean-rest-impl): 1.25.3
REST API for Blue Ocean (blueocean-rest): 1.25.3
Web for Blue Ocean (blueocean-web): 1.25.3
Blue Ocean (blueocean): 1.25.2
Bootstrap 4 API Plugin (bootstrap4-api): 4.6.0-3
bouncycastle API Plugin (bouncycastle-api): 2.25
Favorite (favorite): 2.3.3
Branch API Plugin (branch-api): 2.1044.v2c007e51b_87f
Caffeine API Plugin (caffeine-api): 2.9.2-29.v717aac953ff3
Checks API plugin (checks-api): 1.7.2
Bitbucket Branch Source Plugin (cloudbees-bitbucket-branch-source): 765.v5a_2d6a_23c01d
Folders Plugin (cloudbees-folder): 6.714.v79e858ef76a_2
Command Agent Launcher Plugin (command-launcher): 1.6
Configuration as Code Plugin (configuration-as-code): 1414.v878271fc496f
Credentials Binding Plugin (credentials-binding): 1.27.1
Credentials Plugin (credentials): 1087.1089.v2f1b_9a_b_040e4
Display URL API (display-url-api): 2.3.5
Docker Commons Plugin (docker-commons): 1.19
Docker Pipeline (docker-workflow): 1.28
Durable Task Plugin (durable-task): 495.v29cd95ec10f2
ECharts API Plugin (echarts-api): 5.1.2-1
Email Extension Plugin (email-ext): 2.87
Folder-based Authorization Strategy (folder-auth): 1.4
Folder Properties Plugin (folder-properties): 1.2.1
Font Awesome API Plugin (font-awesome-api): 6.0.0-1
Git client plugin (git-client): 3.11.0
GIT server Plugin (git-server): 1.10
Git plugin (git): 4.11.0
GitHub API Plugin (github-api): 1.301-378.v9807bd746da5
GitHub Branch Source Plugin (github-branch-source): 2.11.4
GitHub plugin (github): 1.34.3
JavaScript GUI Lib: Handlebars bundle plugin (handlebars): 3.0.8
Handy Uri Templates 2.x API Plugin (handy-uri-templates-2-api): 2.1.8-22.v77d5b_75e6953
HTML Publisher plugin (htmlpublisher): 1.29
Icon Shim (icon-shim): 3.0.0
Jackson 2 API Plugin (jackson2-api): 2.13.2.20220328-273.v11d70a_b_a_1a_52
Oracle Java SE Development Kit Installer Plugin (jdk-tool): 1.5
Design Language (jenkins-design-language): 1.25.3
JavaScript GUI Lib: jQuery bundles (jQuery and jQuery UI) plugin (jquery-detached): 1.2.1
JQuery3 API Plugin (jquery3-api): 3.6.0-2
JSch dependency plugin (jsch): 0.1.55.2
JUnit Plugin (junit): 1.54
Kubernetes Client API Plugin (kubernetes-client-api): 5.7.3-168.vd6698a9b2e69
Kubernetes Credentials Provider (kubernetes-credentials-provider): 0.20
Kubernetes Credentials Plugin (kubernetes-credentials): 0.9.0
Kubernetes plugin (kubernetes): 1.30.11
LDAP Plugin (ldap): 2.8
Lockable Resources plugin (lockable-resources): 2.11
Mailer Plugin (mailer): 408.vd726a_1130320
Matrix Project Plugin (matrix-project): 758.v7a_ea_491852f3
Mercurial plugin (mercurial): 2.16
Metrics Plugin (metrics): 4.0.2.8.1
JavaScript GUI Lib: Moment.js bundle plugin (momentjs): 1.1.1
Multibranch Scan Webhook Trigger (multibranch-scan-webhook-trigger): 1.0.9
OkHttp Plugin (okhttp-api): 4.9.3-105.vb96869f8ac3a
Pipeline: Build Step (pipeline-build-step): 2.17
Pipeline Graph Analysis Plugin (pipeline-graph-analysis): 188.v3a01e7973f2c
Pipeline: Input Step (pipeline-input-step): 447.v95e5a_6e3502a_
Pipeline: Milestone Step (pipeline-milestone-step): 100.v60a_03cd446e1
Pipeline: Model API (pipeline-model-api): 1.9.3
Pipeline: Declarative Agent API (pipeline-model-declarative-agent): 1.1.1
Pipeline: Declarative (pipeline-model-definition): 1.9.3
Pipeline: Declarative Extension Points API (pipeline-model-extensions): 1.9.3
Pipeline: REST API Plugin (pipeline-rest-api): 2.23
Pipeline: Stage Step (pipeline-stage-step): 291.vf0a8a7aeeb50
Pipeline: Stage Tags Metadata (pipeline-stage-tags-metadata): 1.9.3
Pipeline: Stage View Plugin (pipeline-stage-view): 2.23
Pipeline Utility Steps (pipeline-utility-steps): 2.11.0
Plugin Utilities API Plugin (plugin-util-api): 2.16.0
Plain Credentials Plugin (plain-credentials): 1.8
Popper.js API Plugin (popper-api): 1.16.1-2
Pub-Sub "light" Bus (pubsub-light): 1.16
Remote Jenkinsfile Provider (remote-file): 1.21
SCM API Plugin (scm-api): 602.v6a_81757a_31d2
Script Security Plugin (script-security): 1138.v8e727069a_025
Simple Theme Plugin (simple-theme-plugin): 103.va_161d09c38c7
Snakeyaml API Plugin (snakeyaml-api): 1.29.1
Server Sent Events (SSE) Gateway Plugin (sse-gateway): 1.24
SSH Credentials Plugin (ssh-credentials): 1.19
SSH Pipeline Steps (ssh-steps): 2.0.0
Structs Plugin (structs): 308.v852b473a2b8c
Token Macro Plugin (token-macro): 285.vff7645a_56ff0
Trilead API Plugin (trilead-api): 1.57.v6e90e07157e1
Active Choices Plug-in (uno-choice): 2.5.7
Variant Plugin (variant): 1.4
Pipeline (workflow-aggregator): 2.7
Pipeline: API (workflow-api): 1143.v2d42f1e9dea_5
Pipeline: Basic Steps (workflow-basic-steps): 2.24
Pipeline: Shared Groovy Libraries (workflow-cps-global-lib): 570.v21311f4951f8
Pipeline: Groovy (workflow-cps): 2660.vb_c0412dc4e6d
Pipeline: Nodes and Processes (workflow-durable-task-step): 1128.v8c259d125340
Pipeline: Job (workflow-job): 1145.v7f2433caa07f
Pipeline: Multibranch (workflow-multibranch): 711.vdfef37cda_816
Pipeline Remote Loader Plugin (workflow-remote-loader): 1.5
Pipeline: SCM Step (workflow-scm-step): 2.13
Pipeline: Step API (workflow-step-api): 622.vb_8e7c15b_c95a_
Pipeline: Supporting APIs (workflow-support): 813.vb_d7c3d2984a_0
JAXB plugin (jaxb): 2.3.0.1
SSH server (sshd): 3.228.v4c9f9e652c86
Matrix Authorization Strategy Plugin (matrix-auth): 2.6.7
WMI Windows Agents Plugin (windows-slaves): 1.8
GitLab Plugin (gitlab-plugin): 1.5.31
SSH Agent Plugin (ssh-agent): 1.24.1
SSH Build Agents plugin (ssh-slaves): 1.806.v2253cedd3295
Xcode integration (xcode-plugin): 2.0.15
SonarQube Scanner for Jenkins (sonar): 2.14
Java JSON Web Token (JJWT) Plugin (jjwt-api): 0.11.2-9.c8b45b8bb173
PT Application Inspector Plugin (ptai-jenkins-plugin): 3.6.5
Popper.js 2 API Plugin (popper2-api): 2.11.5-1
Bootstrap 5 API Plugin (bootstrap5-api): 5.1.3-6
ThinBackup (thinBackup): 1.10
OWASP Dependency-Check Plugin (dependency-check-jenkins-plugin): 5.1.2
JavaBeans Activation Framework (JAF) API (javax-activation-api): 1.2.0-2
JavaMail API (javax-mail-api): 1.6.2-5
JIRA Pipeline Steps (jira-steps): 1.6.0
Gitlab API Plugin (gitlab-api): 5.0.1-69.vcdc19e779072
GitLab Branch Source Plugin (gitlab-branch-source): 623.vcc98dc4b_0ce4
Jersey 2 API (jersey2-api): 2.35-7

Running on [enkins23-04-22-sonarqubegroup-test-2ftestpommvn2-master-3-9z8pr](https://jenkins.my.com/computer/enkins23-04-22-sonarqubegroup-test-2ftestpommvn2-master-3-9z8pr/)[](https://jenkins.my.com/job/test-SecDevOps/job/testGitLab-Jenkins23_04_22/job/SonarqubeGroup-test%252FtestPomMvn2/job/master/3/console#) in /home/jenkins/agent/workspace/ubeGroup-test_testPomMvn2_master

[Pipeline] {

Querying the current revision of branch master...

[Pipeline] }

[Pipeline] // node

[Pipeline] }

[Pipeline] // podTemplate

[Pipeline] End of Pipeline

MultiException stack 1 of 2
java.util.ServiceConfigurationError: com.fasterxml.jackson.databind.Module: com.fasterxml.jackson.datatype.jsr310.JavaTimeModule not a subtype
	at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:589)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1237)
	at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1265)
	at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1300)
	at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1385)
	at com.fasterxml.jackson.databind.ObjectMapper.findModules(ObjectMapper.java:1105)
	at com.fasterxml.jackson.databind.ObjectMapper.findModules(ObjectMapper.java:1089)
	at org.glassfish.jersey.jackson.internal.DefaultJacksonJaxbJsonProvider.findAndRegisterModules(DefaultJacksonJaxbJsonProvider.java:51)
	at org.glassfish.jersey.jackson.internal.DefaultJacksonJaxbJsonProvider.<init>(DefaultJacksonJaxbJsonProvider.java:38)
	at jdk.internal.reflect.GeneratedConstructorAccessor248.newInstance(Unknown Source)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
	at org.glassfish.hk2.utilities.reflection.ReflectionHelper.makeMe(ReflectionHelper.java:1356)
	at org.jvnet.hk2.internal.ClazzCreator.createMe(ClazzCreator.java:248)
	at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:342)
	at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
	at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:59)
	at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:47)
	at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:74)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:131)
	at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:176)
	at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:98)
	at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
	at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
	at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
	at org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.lambda$getAllServiceHolders$0(AbstractHk2InjectionManager.java:136)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.getAllServiceHolders(AbstractHk2InjectionManager.java:140)
	at org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager.getAllServiceHolders(ImmediateHk2InjectionManager.java:30)
	at org.glassfish.jersey.internal.inject.Providers.getServiceHolders(Providers.java:307)
	at org.glassfish.jersey.internal.inject.Providers.getCustomProviders(Providers.java:151)
	at org.glassfish.jersey.message.internal.MessageBodyFactory.initialize(MessageBodyFactory.java:219)
	at org.glassfish.jersey.client.ClientMessageBodyFactory$MessageBodyWorkersConfigurator.postInit(ClientMessageBodyFactory.java:75)
	at org.glassfish.jersey.client.ClientConfig$State.lambda$initRuntime$2(ClientConfig.java:462)
	at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:462)
	at org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:317)
	at org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:820)
	at org.glassfish.jersey.client.ClientRequest.getClientRuntime(ClientRequest.java:176)
	at org.glassfish.jersey.client.ClientRequest.getInjectionManager(ClientRequest.java:567)
	at org.glassfish.jersey.client.JerseyWebTarget.onBuilder(JerseyWebTarget.java:371)
	at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:199)
	at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:38)
	at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:808)
	at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:772)
	at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:416)
	at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:404)
	at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:214)
	at org.gitlab4j.api.RepositoryApi.getBranch(RepositoryApi.java:110)
	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource.retrieve(GitLabSCMSource.java:258)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:104)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:59)
	at org.jenkinsci.plugins.workflow.cps.CpsScript.getProperty(CpsScript.java:135)
	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:174)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:456)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:355)
	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onGetProperty(GroovyInterceptor.java:68)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:355)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:403)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:97)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:315)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:279)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
MultiException stack 2 of 2
java.lang.IllegalStateException: Unable to perform operation: create on org.glassfish.jersey.jackson.internal.DefaultJacksonJaxbJsonProvider
	at org.jvnet.hk2.internal.ClazzCreator.create(ClazzCreator.java:369)
	at org.jvnet.hk2.internal.SystemDescriptor.create(SystemDescriptor.java:463)
	at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:59)
	at org.jvnet.hk2.internal.SingletonContext$1.compute(SingletonContext.java:47)
	at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture$1.call(Cache.java:74)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at org.glassfish.hk2.utilities.cache.Cache$OriginThreadAwareFuture.run(Cache.java:131)
	at org.glassfish.hk2.utilities.cache.Cache.compute(Cache.java:176)
	at org.jvnet.hk2.internal.SingletonContext.findOrCreate(SingletonContext.java:98)
	at org.jvnet.hk2.internal.Utilities.createService(Utilities.java:2102)
	at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:93)
	at org.jvnet.hk2.internal.ServiceHandleImpl.getService(ServiceHandleImpl.java:67)
	at org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.lambda$getAllServiceHolders$0(AbstractHk2InjectionManager.java:136)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
	at java.base/java.util.LinkedList$LLSpliterator.forEachRemaining(LinkedList.java:1239)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
	at org.glassfish.jersey.inject.hk2.AbstractHk2InjectionManager.getAllServiceHolders(AbstractHk2InjectionManager.java:140)
	at org.glassfish.jersey.inject.hk2.ImmediateHk2InjectionManager.getAllServiceHolders(ImmediateHk2InjectionManager.java:30)
	at org.glassfish.jersey.internal.inject.Providers.getServiceHolders(Providers.java:307)
	at org.glassfish.jersey.internal.inject.Providers.getCustomProviders(Providers.java:151)
	at org.glassfish.jersey.message.internal.MessageBodyFactory.initialize(MessageBodyFactory.java:219)
	at org.glassfish.jersey.client.ClientMessageBodyFactory$MessageBodyWorkersConfigurator.postInit(ClientMessageBodyFactory.java:75)
	at org.glassfish.jersey.client.ClientConfig$State.lambda$initRuntime$2(ClientConfig.java:462)
	at java.base/java.util.Arrays$ArrayList.forEach(Arrays.java:4390)
	at org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:462)
	at org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:317)
	at org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:820)
	at org.glassfish.jersey.client.ClientRequest.getClientRuntime(ClientRequest.java:176)
	at org.glassfish.jersey.client.ClientRequest.getInjectionManager(ClientRequest.java:567)
	at org.glassfish.jersey.client.JerseyWebTarget.onBuilder(JerseyWebTarget.java:371)
	at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:199)
	at org.glassfish.jersey.client.JerseyWebTarget.request(JerseyWebTarget.java:38)
	at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:808)
	at org.gitlab4j.api.GitLabApiClient.invocation(GitLabApiClient.java:772)
	at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:416)
	at org.gitlab4j.api.GitLabApiClient.get(GitLabApiClient.java:404)
	at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:214)
	at org.gitlab4j.api.RepositoryApi.getBranch(RepositoryApi.java:110)
	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource.retrieve(GitLabSCMSource.java:258)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:104)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:59)
	at org.jenkinsci.plugins.workflow.cps.CpsScript.getProperty(CpsScript.java:135)
	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:174)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:456)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:355)
	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onGetProperty(GroovyInterceptor.java:68)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:355)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:403)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:97)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:315)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:279)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Caused: org.gitlab4j.api.GitLabApiException
	at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:664)
	at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:216)
	at org.gitlab4j.api.RepositoryApi.getBranch(RepositoryApi.java:110)
	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource.retrieve(GitLabSCMSource.java:258)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:104)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:59)
	at org.jenkinsci.plugins.workflow.cps.CpsScript.getProperty(CpsScript.java:135)
	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:174)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:456)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:355)
	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onGetProperty(GroovyInterceptor.java:68)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:355)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
Caused: java.io.IOException: Failed to retrieve the SCM revision for master
	at io.jenkins.plugins.gitlabbranchsource.GitLabSCMSource.retrieve(GitLabSCMSource.java:298)
	at jenkins.scm.api.SCMSource.fetch(SCMSource.java:582)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:104)
	at org.jenkinsci.plugins.workflow.multibranch.SCMVar.getValue(SCMVar.java:59)
	at org.jenkinsci.plugins.workflow.cps.CpsScript.getProperty(CpsScript.java:135)
	at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:174)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:456)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:355)
	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onGetProperty(GroovyInterceptor.java:68)
	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onGetProperty(SandboxInterceptor.java:355)
	at org.kohsuke.groovy.sandbox.impl.Checker$7.call(Checker.java:353)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:357)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at org.kohsuke.groovy.sandbox.impl.Checker.checkedGetProperty(Checker.java:333)
	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.getProperty(SandboxInvoker.java:29)
	at com.cloudbees.groovy.cps.impl.PropertyAccessBlock.rawGet(PropertyAccessBlock.java:20)
	at WorkflowScript.run(WorkflowScript:53)
	at ___cps.transform___(Native Method)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:74)
	at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
	at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:403)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:97)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:315)
	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:279)
	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Finished: FAILURE

@jetersen
Copy link
Member

jetersen commented Apr 19, 2022

@basil
Copy link
Member

basil commented Apr 19, 2022

@readonlyuser1 If you want to motivate others to help you, please provide steps to reproduce the problem from scratch, expected results, and actual results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants