How to filter project history on specific branch
I'm looking at the project history page in my online environment, e.g. an url like this:
https://ci.appveyor.com/project/my-organization/project-xyz/history
But I want to see only builds from a specific branch (in this particular instance the master
branch). How can I do that?
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by Owen McDonnell on 14 Jun, 2019 11:39 PM
This functionality is currently under development. There are several requests for this and related features.
In the meantime here is a script you could use as a starting pint. It just hits the REST api and filters the return builds by branch.
2 Posted by jeroen.heijmans on 17 Jun, 2019 06:31 AM
Okay, thanks for the update and the workaround.
Couldn't find any open support requests for this, is why I asked. I'll leave this one open for others to find then, unless you'd have an open ticket to track these features that's better suited?
3 Posted by Ilya Finkelshte... on 17 Jun, 2019 06:01 PM
Sure, lets keep it open for now. Proper branch filtering is coming :)
4 Posted by jeroen.heijmans on 19 Jun, 2019 03:11 PM
Question though, I'm trying to adapt the ps1 script to a Postman call:
https://ci.appveyor.com/api/projects/myorganization/project-slug/history?recordsNumber=100
(the same URI that is hit when I check the Network tab when looking at the project history in Chrome)Content-type: application/json
Authorization: Bearer blahblahblah
, where the token was taken from https://ci.appveyor.com/api-keysBut I get:
Just to check, if I 'mangle' the token it says:
My organization administrator says they can't do anything to my account, except making me an admin (which seems overkill, if it would even help).
What does one need to do to allow a user to retrieve the history in the suggested manner?
5 Posted by Ilya Finkelshte... on 19 Jun, 2019 06:34 PM
Your instincts are correct, making you an admin will not help :) Account has 2FA enabled and API authentication methods are disabled. Admin has to enable
API v1
orAPI v2
depending on the kind of API token you use.6 Posted by jeroen.heijmans on 20 Jun, 2019 07:26 AM
Thank you very much, asked my colleague some more about this and they said:
Neither v1 or v2 checkbox was checked. Now that they are, it works for me. Thanks for your support!
7 Posted by Ilya Finkelshte... on 20 Jun, 2019 05:16 PM
Great, thanks for the update!
Ilya Finkelshteyn closed this discussion on 20 Jun, 2019 05:16 PM.