Wie setzen git commit --Autor richtig von rake läuft unter dem Konto "LocalSystem" ausgeführt?

Habe ich Rake build-Skript für mein CI-Prozess läuft unter TeamCity@windows.
Einer der Schritte, die das Skript tut, ist, zu Begehen einige änderungen an der remote-repository (repository stellt Reale Produktionsumgebung auf meinem shared-hosting. Es hat nur der ftp-Zugriff, so dass ich anzeigen dieser Lage als windows-Laufwerk)

Teil von ruby sieht wie folgt aus:

  sh "git commit -v -m #{version_tag}"

Allerdings, wenn das Skript ausgeführt wird, die von teamcity build agent (läuft unter dem Konto "LocalSystem" ausgeführt), bekomme ich die folgende Warnung:

[master e7a5a8d] v0.4.7.0
Committer: unknown <SYSTEM@.(none)>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email [email protected]
If the identity used for this commit is wrong, you can fix it with:
git commit --amend --author='Your Name <[email protected]>'
9 files changed, 0 insertions(+), 0 deletions(-)

Lesen, was ich verändert mein Rechen script-Befehl:

  sh "git commit --author='TeamCity <[email protected]>' -v -m #{version_tag}"

aber führt dieser Befehl mit einem seltsamen Fehler (bisher commit erfolgreich war, aber mit Warnung). Das ist das einzige, was bekomme ich als Ausgabe von TeamCity build-log:

git commit --author='TeamCity <[email protected]>' -v -m v1.0.18.10
[19:06:20]: [Execute _3_deployment_stage:to_ftp] The system cannot find the file specified.

Wie kann ich erfolgreich ein Autor für eine commit-Skript läuft unter LocalSystem-Konto ?

InformationsquelleAutor | 2011-03-05
Schreibe einen Kommentar