- 
                Notifications
    You must be signed in to change notification settings 
- Fork 660
Gem and command line packaging #190
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
Gem and command line packaging #190
Conversation
| @andreasohlund because ruby is not installed on the build server, it isn't building the Gem. Thoughts on installing?  | 
| That should be possible @gbiellem? Sent from my iPhone 
 | 
| Is it possible to build a gem without installing anything? | 
| @andreasohlund I've got no issue with installing ruby on the default build agent - Assuming that's what you want. What version ? | 
| @SimonCropp not sure, I had a quick look at the format. it has nested tar's and did not look as simple as NuGet. Maybe @danielmarbach knows | 
| What is the problem of installing ruby on the agents? Easiest way to get going. I don't know of any other way to issue the gem command 
 | 
| I've added Ruby to the build agent | 
| @gbiellem thanks, thats working But now we have According to http://guides.rubygems.org/patterns/#prerelease-gems, the format would be 1.0.0.PullRequest.190 - Or 1.0.0.PullRequest190 (if additional .'s are not allowed) @danielmarbach any ideas on this? | 
| @danielmarbach I would also like to setup automated deploy from the build server. Do we need some API key like NuGet to push the package? | 
| Yes you do. You need an acc on rubygems.org. I can then add this acc as an owner of the package 
 | 
| You then just do a gem push 
 | 
| @andreasohlund did you want to create an account for the particular build server, then we can push automatically for the next release | 
| I'll create an account On Mon, Jun 9, 2014 at 11:29 PM, Jake Ginnivan [email protected] 
 | 
| Done, handle: particular On Tue, Jun 10, 2014 at 7:56 AM, Andreas Öhlund < 
 | 
| Need full email. | 
| engineering at particular dot net On Tue, Jun 10, 2014 at 11:52 AM, danielmarbach [email protected] 
 | 
| Owner added. Sorry for the delay https://rubygems.org/gems/gitversion also done for old package gitflowversion | 
| Replace the version string, use gem build gitversion-*.gemspec when you want to push just issue gem push in the folder where the built gemfile is stored | 
| I have already done the version string replace. The outstanding question for me is how to fix Do we need a new variable which changes it to  | 
| And then do we have to Pad? | 
| I think so. But I'm no gemspec expert 
 | 
| @JakeGinnivan this one seems ready to go. Rebase? | 
| Will try rebase this morning before I head off to Download Festival :) | 
| Rebased, im heading out now. So if build fails it will be tomorrow when I get it sorted | 
| Failed :) On Fri, Jun 13, 2014 at 12:27 PM, Jake Ginnivan [email protected] 
 | 
| @agross can you check http://builds.particular.net/viewLog.html?buildId=48244&tab=buildResultsDiv&buildTypeId=GitFlowVersion_1Buil to make sure the Gem is built properly | 
| Looks good to me. Before releasing, please consider #193! | 
Gem and command line packaging

Automatically package Gem (when GitVersion_SemVer variable is available). ContinueOnError is set to true, so it will not fail the build if gems are not installed.
Also includes a NuGet.CommandLine package