-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
jenkins:2.319.2
hashicorp-vault-pipeline:1.3
hashicorp-vault-plugin:336.v182c0fbaaeb7
credentials:1074.v60e6c29b_b_44b_
git-client:3.11.0
Hi,
I have a problem with gitlab and HCVault in new version jenkins 2.319.2:
{{Caused: java.io.IOException: Unable to serialize UserRPCRe}}quest:org.jenkinsci.plugins.gitclient.GitClient.addCredentials[java.lang.String,com.cloudbees.plugins.credentials.common.StandardCredentials]
code jenkins pipeline:
...
steps{
script{
git branch: "${envGitBranch}",
credentialsId: "${envGitCredentialsId}",
url: "${envGitUrl}"
}
}
...
where:
envGitCredentialsId - is Credential ID, type: Vault Username-Password Credential (I re-defined, defined new, and defined now and tested as: Vault SSH Username with private key Credential)
It worked in version: credentials:2.6.1 git:4.10.0 }}{{gitlab-plugin:1.5.22 }}{{hashicorp-vault-plugin:3.8.0
-------------------------------------------------------------------
The recommended git tool is: NONE
using credential vault_user_passwd
Fetching changes from the remote Git repository
> git rev-parse --resolve-git-dir /***/.git # timeout=10
> git config remote.origin.url https://***.git # timeout=10
Fetching upstream changes from https://***.git > git --version # timeout=10
> git --version # 'git version 1.8.3.1'
using GIT_ASKPASS to set credentials vault_gitlab_user_passwd
> git fetch --tags --progress https://***.git +refs/heads/:refs/remotes/origin/ # timeout=10
Checking out Revision *** (refs/remotes/origin/master)
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git config core.sparsecheckout # timeout=10
> git checkout -f *** # timeout=10
> git branch -a -v --no-abbrev # timeout=10
> git branch -D master # timeout=10
> git checkout -b master *** # timeout=10
Commit message: "Merge branch 'develop' into 'master'"
> git rev-list --no-walk *** # timeout=10
-------------------------------------------------------------------
and I have error now:
-------------------------------------------------------------------
java.io.NotSerializableException: hudson.model.Hudson
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1185)
at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553)
at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510)
at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433)
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
at java.base/java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1379)
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1175)
at java.base/java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1553)
at java.base/java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1510)
at java.base/java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1433)
at java.base/java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1179)
at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:349)
at hudson.remoting.UserRequest._serialize(UserRequest.java:263)
at hudson.remoting.UserRequest.serialize(UserRequest.java:272)
Caused: java.io.IOException: Unable to serialize UserRPCRequest:org.jenkinsci.plugins.gitclient.GitClient.addCredentials[java.lang.String,com.cloudbees.plugins.credentials.common.StandardCredentials](10)
at hudson.remoting.UserRequest.serialize(UserRequest.java:274)
at hudson.remoting.UserRequest.<init>(UserRequest.java:101)
at hudson.remoting.Channel.call(Channel.java:999)
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:286)
Caused: hudson.remoting.RemotingSystemException
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:302)
at com.sun.proxy.$Proxy92.addCredentials(Unknown Source)
at org.jenkinsci.plugins.gitclient.RemoteGitImpl.addCredentials(RemoteGitImpl.java:199)
at hudson.plugins.git.GitSCM.createClient(GitSCM.java:920)
at hudson.plugins.git.GitSCM.createClient(GitSCM.java:838)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1291)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:129)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
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
-------------------------------------------------------------------
I use RHEL7 and RHEL8.
Is it bug or my mistake?