Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save appcoreopc/a6f158029f0ab7cf3ed51af4e0a3a863 to your computer and use it in GitHub Desktop.
Save appcoreopc/a6f158029f0ab7cf3ed51af4e0a3a863 to your computer and use it in GitHub Desktop.
- task: SonarQubeAnalyze@4
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master')))
- task: SonarQubePublish@4
inputs:
pollingTimeoutSec: '300'
condition: and(succeeded(), or(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/master')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment