How to filter project history on specific branch

jeroen.heijmans's Avatar

jeroen.heijmans

14 Jun, 2019 07:53 AM

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?

  1. Support Staff 1 Posted by Owen McDonnell on 14 Jun, 2019 11:39 PM

    Owen McDonnell's Avatar

    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. 2 Posted by jeroen.heijmans on 17 Jun, 2019 06:31 AM

    jeroen.heijmans's Avatar

    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. 3 Posted by Ilya Finkelshte... on 17 Jun, 2019 06:01 PM

    Ilya Finkelshteyn's Avatar

    Sure, lets keep it open for now. Proper branch filtering is coming :)

  4. 4 Posted by jeroen.heijmans on 19 Jun, 2019 03:11 PM

    jeroen.heijmans's Avatar

    Question though, I'm trying to adapt the ps1 script to a Postman call:

    1. GET URI is 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)
    2. Header Content-type: application/json
    3. Header Authorization: Bearer blahblahblah, where the token was taken from https://ci.appveyor.com/api-keys

    But I get:

    { "message": "Account cannot be accessed with current authentication method." }
    

    Just to check, if I 'mangle' the token it says:

    { "message": "User must be logged in to access account resources." }
    

    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. 5 Posted by Ilya Finkelshte... on 19 Jun, 2019 06:34 PM

    Ilya Finkelshteyn's Avatar

    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 or API v2 depending on the kind of API token you use.

  6. 6 Posted by jeroen.heijmans on 20 Jun, 2019 07:26 AM

    jeroen.heijmans's Avatar

    Thank you very much, asked my colleague some more about this and they said:

    I found a checkbox on the org account level

    Neither v1 or v2 checkbox was checked. Now that they are, it works for me. Thanks for your support!

  7. 7 Posted by Ilya Finkelshte... on 20 Jun, 2019 05:16 PM

    Ilya Finkelshteyn's Avatar

    Great, thanks for the update!

  8. Ilya Finkelshteyn closed this discussion on 20 Jun, 2019 05:16 PM.

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

 

26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM
20 Sep, 2024 05:50 PM