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

Submodule checkout fails with Could not create directory '/.ssh' error if SSHCheckoutTrait is used #872

Open
Yanpas opened this issue Aug 14, 2024 · 0 comments
Labels

Comments

@Yanpas
Copy link

Yanpas commented Aug 14, 2024

Jenkins and plugins versions report

Environment
TBD

What Operating System are you using (both controller, and any agents involved in the problem)?

RHEL 7

Reproduction steps

I have a multibranch pipeline with pipeline code stored in SCM.

The repo consist of projectA/repoA and one submodule projectB/repoB. Since these are different projects we can't use HTTP token and ssh is our only option. repoA gets checked-out fine, but when it comes to repoB I get this error.

Expected Results

submodules get checked out

Actual Results

Could not create directory '/.ssh' right when submodules gets checked out error.

Anything else?

I tried setting HOME=$WORKSPACE in job setting but no effect.

Are you interested in contributing a fix?

No response

@Yanpas Yanpas added the bug label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant