geeklearningio / gl-vsts-tasks-yarn

Yarn Package Manager Visual Studio Team Services Build and Release Management extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yarn version fails in ADO pipeline

cdietschrun opened this issue · comments

Before opening an issue please read this.

Are you reporting a bug or a feature request ?

  • Bug
  • Feature request
  • Question

Description

I'd like to figure out how to use ADO Pipelines and have Yarn version called from a CI build, but it fails like so:
2019-01-25T14:24:13.1846622Z [command]C:\Windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\yarn\1.13.0\x64\yarn-v1.13.0\bin\yarn.cmd version --patch"
2019-01-25T14:24:13.5048343Z yarn version v1.13.0
2019-01-25T14:24:13.5785623Z info Current version: 0.0.4
2019-01-25T14:24:13.5791628Z info New version: 0.0.5
2019-01-25T14:24:13.7507362Z error Command failed.
2019-01-25T14:24:13.7507825Z Exit code: 128
2019-01-25T14:24:13.7507959Z Command: git
2019-01-25T14:24:13.7508076Z Arguments: commit -m v0.0.5
2019-01-25T14:24:13.7508214Z Directory: D:/a/1/s
2019-01-25T14:24:13.7508363Z Output:
2019-01-25T14:24:13.7508478Z *** Please tell me who you are.
2019-01-25T14:24:13.7508575Z
2019-01-25T14:24:13.7508761Z Run
2019-01-25T14:24:13.7508872Z
2019-01-25T14:24:13.7508991Z git config --global user.email "you@example.com"
2019-01-25T14:24:13.7509126Z git config --global user.name "Your Name"
2019-01-25T14:24:13.7509225Z
2019-01-25T14:24:13.7509339Z to set your account's default identity.
2019-01-25T14:24:13.7509455Z Omit --global to set the identity only in this repository.
2019-01-25T14:24:13.7509575Z
2019-01-25T14:24:13.7509964Z fatal: unable to auto-detect email address (got 'VssAdministrator@fv-az388.(none)')
2019-01-25T14:24:13.7510185Z info Visit https://yarnpkg.com/en/docs/cli/version for documentation about this command.

Expected behavior

A new commit to a branch so that I can automate a pull request

Reproduction

Insert reproduction steps here
add yarn version --patch into a pipeline.

MANDATORY FOR BUGS: Insert debug trace

In order to allow us to quickly reproduce you issue please include a link to a reproduction repository
Can't do

System information

VSTS or TFS:

  • [* ] VSTS
  • TFS

Agent:

  • [* ] Hosted
  • Custom

OS:

  • [ *] Windows
  • Mac
  • Linux

Yarn version:
Yarn version*

Node version:
Node version*

As the log indicate, it's a problem with git configuration and it is not really related to the task itself.