Giter VIP home page Giter VIP logo

Comments (11)

namedgraph avatar namedgraph commented on August 16, 2024 7

4 years later and this is still not fixed?..

from scm-sync-configuration-plugin.

developerinlondon avatar developerinlondon commented on August 16, 2024 4

the easiest way i had a workaround for this was by adding a .gitconfig file in the jenkins root folder with the following:

[user]
        name = <git-username>
        email = <git-email>

from scm-sync-configuration-plugin.

ababushk avatar ababushk commented on August 16, 2024 3

I've set that in Jenkins Global Configuration (Git plugin settings) and still get this error

from scm-sync-configuration-plugin.

coastwise avatar coastwise commented on August 16, 2024

I'm experiencing the same behaviour on a first time install of the plugin (version 0.0.7.3).

Thanks for including a workaround! Setting --global user.email and user.name via command line worked for me as well.

from scm-sync-configuration-plugin.

tolleiv avatar tolleiv commented on August 16, 2024

I can confirm this issue ...

from scm-sync-configuration-plugin.

shawmanz32na avatar shawmanz32na commented on August 16, 2024

I can also confirm this issue. Jenkins 1.577 , git plugin 2.2.7 , git client plugin 1.11.0

from scm-sync-configuration-plugin.

badevops avatar badevops commented on August 16, 2024

+1 on this -- is there @jenkinsci is it possible to use git credentials provided by the SSH credentials plugin?

from scm-sync-configuration-plugin.

tdaniely avatar tdaniely commented on August 16, 2024

Also an issue for us.
I believe this is because the usual scm usage doesn't create commits at all. So the scm plugin doesn't intend to leave any configuration for git execution in shell steps.
Maybe it's worth considering a withSCM step to allow custom commands using the values configured in the scm plugin, but that sounds like a major redesign of the whole SCM plugin interface.
I workaround the issue by wrapping the checkout step with a custom step in a custom shared library.

from scm-sync-configuration-plugin.

grv87 avatar grv87 commented on August 16, 2024

If this plugin would use Git plugin configuration, couldn't there be a problem when Git configuration is changed during synchronization?

from scm-sync-configuration-plugin.

tdaniely avatar tdaniely commented on August 16, 2024

Oh wow I didn't see that I was posting for the sync plugin, sorry. :) I was talking about the general git plugin.

from scm-sync-configuration-plugin.

ShaktiAhad avatar ShaktiAhad commented on August 16, 2024

So, it's still not fixed.
I need to explicitly mention the git config command in the pipeline like this
sh """ git config --global user.email '[email protected]' git config --global user.name 'jenkin' """
else I always get "Please tell me who you are" error although I set the global username and email

MicrosoftTeams-image

from scm-sync-configuration-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.