VSTS exit request assembly output

My team uses the VSTS build and release mechanism, combined with the security settings for branching the request request, so that code can only be merged when the transfer request is complete.

We are faced with something odd, because when a pull request is created (and an assembly is created to confirm the commit), the completion of this assembly caused by the pull request also indirectly triggers the release because we have a release.

This in itself is probably normal, but then the extraction request is also β€œcompleted”, another build and release cycle takes place!

Is there a way to make VSTS release triggers fire only when the pull request is complete and combined with the release branch?

Thank!

+12
source share
3 answers

We can specify a branch filter for the release trigger so that only master builds trigger the release. PR check assemblies are performed in another branch. When approved and the branch merged with master, the assembly you want launches the release.

, . "", "" , " " - . , , " ". "+ " . .

, , , PR .

https://docs.microsoft.com/en-us/vsts/build-release/concepts/process/conditions

+16

CI, PR.

, :

1. Clone build.

... CI build β†’ Clone β†’ β†’ CI build β†’ save.

enter image description here

2. .

β†’ β†’ β†’ .

enter image description here

, :

  • / .
  • PR.
  • PR ( ), CI .
  • CI , CD .

PR release, .

+9

Build, , Build.Reason " ".

> " "> " "> " "

PullRequest ( successeded (), ne ( ['Build.Reason'], 'PullRequest'))

0

Source: https://habr.com/ru/post/1682891/


All Articles