Build using git tag via the REST API

david's Avatar

david

14 Apr, 2020 05:49 PM

Is there a way to request a build via REST API for a particular tag? I can see that I can send use https://www.appveyor.com/docs/api/projects-builds/#start-build-of-specific-branch-commit , but is there a way to use the tag directly?

Thanks,

  1. Support Staff 1 Posted by Feodor Fitsner on 16 Apr, 2020 03:20 AM

    Feodor Fitsner's Avatar

    Yes, that's possible: https://help.appveyor.com/discussions/questions/45369-is-to-possibl...

    Additionally, you can check if MY_RELEASE_TAG is defined, for example:

    install:
    - IF DEFINED MY_RELEASE_TAG git fetch --tags
    - IF DEFINED MY_RELEASE_TAG git checkout tags/%MY_RELEASE_TAG%
    
  2. 2 Posted by david on 06 May, 2020 03:05 PM

    david's Avatar

    Thanks! Exactly what I was looking for.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

27 Jan, 2023 08:06 PM
27 Jan, 2023 08:05 PM
25 Jan, 2023 03:23 PM
25 Jan, 2023 03:22 PM
23 Jan, 2023 03:29 PM