disable_publish_on_pr and do_not_increment_build_number

Mike-EEE's Avatar

Mike-EEE

18 Nov, 2019 06:54 PM

Would it be possible to get more information around these properties?

Does it configure the actual pull *request* (as in, when it is created), when a new commit is added, and/or when it is accepted into the main branch?

We'd like to bump our build number each time a PR is accepted into a new branch, and then deploy to the project nuget feed.

Any assistance on further explaining these properties and the proper configuration for our desired deployment would be greatly appreciated.

  1. 1 Posted by Mike-EEE on 18 Nov, 2019 07:58 PM

    Mike-EEE's Avatar

    I enjoy asking questions on here as I find it helps find an answer faster, basically of my own doing. xD

    Anyways, I found the History tab, and it appears it is doing exactly what we want:

    - PRs and subsequent PR commits create new builds, but do not deploy to the project nuget and they do not increase the build number
    - When accepting a PR this kicks off a new build which increments the build number and publishes a nuget on the project feed.

    Here are the configurations:

    ```
    pull_requests:
      do_not_increment_build_number: true
    nuget:
      project_feed: true
      disable_publish_on_pr: true
    ```

    Hopefully this will help someone else with the same questions.

  2. Support Staff 2 Posted by Feodor Fitsner on 18 Nov, 2019 10:16 PM

    Feodor Fitsner's Avatar

    Thanks for sharing your findings!

  3. Mike-EEE closed this discussion on 19 Nov, 2019 11:10 AM.

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

Recent Discussions

05 Dec, 2019 09:12 PM
04 Dec, 2019 07:46 PM
04 Dec, 2019 12:01 AM
04 Dec, 2019 12:00 AM
03 Dec, 2019 11:00 PM