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

GitVersion for Bamboo - Unable to parse multiple command-line arguments #778

Closed
TAGC opened this issue Feb 5, 2016 · 8 comments
Closed

Comments

@TAGC
Copy link

TAGC commented Feb 5, 2016

This is an issue with your GitVersion for Bamboo plugin but I'm unable to sign up an account with your JIRA issue tracker (it keeps returning a 504 error) so I'm posting here instead.

I have a build where I include a GitVersion task:

I consistently get the following error:

simple  05-Feb-2016 09:05:07    Executing C:\ProgramData\Chocolatey\Bin\GitVersion.exe /output buildserver /updateassemblyinfo
error   05-Feb-2016 09:05:08    Error executing GitVersion
Failed to parse arguments: /output buildserver /updateassemblyinfo

Could not parse command line parameter '/output buildserver /updateassemblyinfo'.

It doesn't seem to be splitting arguments by spaces.

If I run the GitVersion executable with these arguments directly as a Command task in Bamboo, it works fine. However, I don't know if this allows me to store the version information as Bamboo build variables and subsequently access them for my deployment release versioning. Is there a way I can work around this?

@JakeGinnivan
Copy link
Contributor

@carolynvs any ideas?

@carolynvs
Copy link

Yeah, I'm not splitting the args by spaces. I'll fix that and reply back when an updated version to the marketplace is ready.

Thanks!

@carolynvs
Copy link

I've pushed GitVersion for Bamboo v1.2.2 to the Atlassian marketplace. This release fixes parsing of multiple arguments to gitversion.exe.

I noticed from your example that you were passing /output buildserver, however the plugin relies on parsing json output, so using buildserver will cause the task to fail. To update your AssemblyInfo.cs files in addition to capturing the version in Bamboo, just pass /updateassemblyinfo.

If you run into any other troubles with the plugin, you can open an issue in the plugin's repository: https://bitbucket.org/carolynvs/gitversion-bamboo.

@TAGC
Copy link
Author

TAGC commented Feb 7, 2016

Cheers.

I noticed from your example that you were passing /output buildserver, however the plugin relies on parsing json output, so using buildserver will cause the task to fail.

I was doing this originally (specifically, omitting the /output argument so it defaulted to JSON) and no versioning-related metadata was logged after my builds, so I thought I had to change it.

@carolynvs
Copy link

@TAGC If the Bamboo task isn't working for you, I'd appreciate a bug report and any details you may have so I can reproduce. 😄

@TAGC
Copy link
Author

TAGC commented Feb 7, 2016

Sure. I'll see if I can submit a report tomorrow when I get into work.

@pascalberger
Copy link
Member

@TAGC Has this issue been resolved and can be closed?

@TAGC
Copy link
Author

TAGC commented Jul 22, 2016

Oh hey, sorry for not getting back. Yeah I'm not having any problems with the build now so this issue can be closed.

@TAGC TAGC closed this as completed Jul 22, 2016
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

4 participants