disable_publish_on_pr and do_not_increment_build_number

Mike-E's Avatar

Mike-E

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-E on 18 Nov, 2019 07:58 PM

    Mike-E'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-E 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

07 Jul, 2020 06:21 PM
07 Jul, 2020 03:15 PM
05 Jul, 2020 02:33 AM
03 Jul, 2020 07:29 PM
03 Jul, 2020 03:53 AM

 

02 Jul, 2020 09:09 PM
02 Jul, 2020 03:24 PM
01 Jul, 2020 01:12 PM
30 Jun, 2020 04:26 PM
25 Jun, 2020 05:54 PM
24 Jun, 2020 08:11 AM