You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2019/02/03 14:51:00 UTC

[jira] [Commented] (WAGON-554) Tests with checkin rely on global Git config

    [ https://issues.apache.org/jira/browse/WAGON-554?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16759434#comment-16759434 ] 

Michael Osipov commented on WAGON-554:
--------------------------------------

Sample outout of ASF Jenkins:

{noformat}
 linux-jdk11 / Build linux-jdk11 / org.apache.maven.wagon.providers.scm.ScmGitExeWagonTest.testWagonPutDirectory
 Fehlerdetails

Error interacting with SCM: Unable to commit file. The git-commit command failed. 
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal:********@asf929.gq1.ygridcore.net>) not allowed

 Stacktrace

org.apache.maven.wagon.TransferFailedException: 
Error interacting with SCM: Unable to commit file. The git-commit command failed. 
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal:********@asf929.gq1.ygridcore.net>) not allowed

Caused by: org.apache.maven.scm.ScmException: 
Unable to commit file. The git-commit command failed. 
*** Please tell me who you are.

Run

  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal:********@asf929.gq1.ygridcore.net>) not allowed

{noformat}

> Tests with checkin rely on global Git config
> --------------------------------------------
>
>                 Key: WAGON-554
>                 URL: https://issues.apache.org/jira/browse/WAGON-554
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-scm
>    Affects Versions: 3.3.1
>            Reporter: Matthieu Brouillard
>            Assignee: Michael Osipov
>            Priority: Major
>
> Inside maven-scm-provider-gitexe project, the two following tests `GitCheckInCommandNoBranchTest.testCheckinNoBranch` and `GitCheckInCommandTest.testCheckinAfterRename` expect a global user.name and user.email to be set.
> On installations where .gitconfig contains the following:
> {{[user]}}
> {{useConfigOnly = true}}
> The tests will fail.
> It would be better after repository creation to configure a user name & email at project level.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)