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

git config missing on ROS2 farm #205

Open
mikaelarguedas opened this issue Jul 6, 2018 · 0 comments
Open

git config missing on ROS2 farm #205

mikaelarguedas opened this issue Jul 6, 2018 · 0 comments

Comments

@mikaelarguedas
Copy link
Contributor

We've been having jobs failing on build.ros2.org due to a lack of git config.

I have no idea how the puppet magic works but looking around it seems that the following snippet should cover setting up a git config:

jenkins::cli::exec { 'configure_git_user':
# semicolons are needed because the lines are joined with spaces rather than newlines.
command => [
'def gitscm_config = Jenkins.getInstance().getDescriptor("hudson.plugins.git.GitSCM");',
'gitscm_config.setCreateAccountBasedOnEmail(false);',
'gitscm_config.setGlobalConfigName("jenkins");',
'gitscm_config.setGlobalConfigEmail("[email protected]");',
'gitscm_config.save();',
]
}

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

No branches or pull requests

1 participant