
双方向 SSL 認証で保護されたセルフホスト型 GitLab リポジトリで作業する必要があります。そのため、Git 独自の資格情報とは別に接続するには、Git へのリクエストにクライアント SSL が付属している必要があります。
ブラウザの観点から見ると、pfx 証明書がインポートされると、Google Chrome と Mozilla Firefox で閲覧できるようになります。
Jenkinsのボックスのgitクライアントは、グローバルgit構成http.sslCertを通じてSSLクライアントで構成されており、これはテスト済みで、コマンドライン経由で動作します。私はjenkins version 2.141
また、以下に示すようにp12証明書をアップロードして、gitに新しいタイプの資格情報を追加しました。
しかし、何らかの理由で、Jenkinsは追加ボタンをクリックしてもクライアント証明書を選択する方法を表示できません。そこで、パスワードありとパスワードなしのp12証明書を使用して新しい証明書を追加しましたが、どちらも同じ結果になりました。パスワードありの場合、パスワードフィールドにエクスポートパスワードを入力しました。
パスワードなしでp12証明書を使用する
hudson.plugins.git.GitException: Command "git fetch --tags --progress
origin +refs/heads/master:refs/remotes/origin/master --prune" returned
status code 128:
stdout:
stderr: fatal: unable to access
'https://git.theurl.git/': The
requested URL returned error: 400
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2016)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1735)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:72)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:420)
at jenkins.plugins.git.GitSCMFileSystem$BuilderImpl.build(GitSCMFileSystem.java:351)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:196)
at jenkins.scm.api.SCMFileSystem.of(SCMFileSystem.java:172)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:108)
at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:67)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
本当に選択肢がない。似たような投稿を見つけた。スタックオーバーフローしかし、それはあまり役に立ちませんでした。このブロッカーをどうやって通過するのでしょうか? 最近誰かやったことある人いますか?