-
Notifications
You must be signed in to change notification settings - Fork 4
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
(GH-8) Provide alternative tool paths #9
Conversation
This is a first draft to provide alternative tool paths for metrics.exe based on a ToolVersion parameter. Currently VS2013 and VS2015 are supported
0fc026e
to
1b797dc
Compare
@fwinkelbauer let me see if I can help you out with some of this... Although perhaps poorly named, the https://cake-contrib.github.io/Cake.Recipe/docs/fundamentals/environment-variables As an example, you can see all the Environment Variables here within our Appveyor Configuration: If for whatever reason, you already have the required information in another pre-existing Environment Variable, you can tell Cake.Recipe the name of variable to use. However, you don't directly tell Cake.Recipe the value of the Environment Variable. So, for example, you could do this:
Where you could configure these locally here: Hopefully that makes sense. Now, after following these instructions: https://cake-contrib.github.io/Cake.Recipe/docs/usage/creating-release You would have these Enviroment Variables configured locally: And after restarting your PowerShell Session (you always have to do this after editing your Environment Variables) you should be able to run:
And the releasenotes will be created. However, on that note... As per the instructions that I linked to, all issues that are being assigned to the milestone (in your case, 0.2.0) need to be closed, in order for them to make their way into the release notes. Currently, this issue (#8) is still open, and therefore won't appear. If the work on this issue is complete, I would suggest closing the issue, or bumping the issue to another milestone. With those things done, I think you should be in a position to continue with the release. Please let me know if you have any questions. |
@gep13 Alright, so I got around to test this. My initial approach regarding the environment variables was based on this. I've tried: $env:GITHUB_USERNAME = "fwinkelbauer"
$env:GITHUB_PASSWORD = "..."
.\build.ps1 -targets releasenotes This blew up with an Octokit exception, which is why I've came up with the On more note regarding the recipe documentation: I spend like 15 minutes until I've figured out that the release notes draft (point 6) can actually be seen on GitHub. I should add that I'm a GitHub noob when it comes to using release notes, but this step was unexpected and confusing. I was searching the Can you actually see the release draft? I am wondering why it states that there is one commit which closed 5 issues in the 0.2.0 release. Did that happen because the milestone includes one pull request, or is it because the link between the issues and their respective pull requests is "wrong"? |
@gep13 Oh and: the edit mask for the 0.2.0 release shows that this release is marked as a pre-release. Should I change that manually, or is that done in the Recipe publish process? |
Good stuff, glad to hear that this worked!
Fair point. I think we could expand the documentation in this area.
Hmm, I am not entirely sure why it is saying that. It could be a bug with GitReleaseManager. It doesn't use commit messages etc to figure this out, but rather it counts the commits. I would need to dig into what is going on there within GitReleaseManager. You can manually change that in the release notes. Once you actually create the tag in the repo, this link will show you exactly how many commits there are.
Pre-Release is typically reserved when you are pushing out an |
Two more (hopefully my last) questions:
|
Personally, unless you need a review, I would simply merge directly with When you haven't actually made any commits in the release branch, the merge into master will work, but when you try to merge to develop, it will tell you that there is nothing for it to do. After that, you can simply delete the release branch. |
We did it! 🎉 Thank you! |
Woo hoo! This is great news! Well done! |
You are very welcome! Thank you for taking the time to create/maintain this addin. |
No description provided.