<commit_before>pool:
  vmImage: 'windows-latest'

variables:
  - group: sonarsource-build-variables

stages:
- stage: buildAndTests
  displayName: Build and run Unit tests
  jobs:
    - job: build
      pool:
       vmImage: 'windows-latest'
      displayName: 'Build, UT, analyze on SonarCloud'
      variables:
       solution: 'SonarScanner.MSBuild.sln'
       tfsProcessorSolution: 'SonarScanner.MSBuild.TFS.sln'
       buildPlatform: 'Any CPU'
       buildConfiguration: 'Release'
      steps:
      - checkout: self
      - task: NuGetToolInstaller@1
        displayName: 'Use NuGet 5.7.0'
        inputs:
          versionSpec: '5.7.0'
      - task: DotNetCoreCLI@2
        displayName: Dotnet restore $(tfsProcessorSolution)
        inputs:
          command: 'restore'
          projects: '$(tfsProcessorSolution)'
          feedsToUse: 'select'
      - task: NuGetCommand@2
        displayName: 'NuGet restore TFS Processor'
        inputs:
          command: 'restore'
          restoreSolution: '$(tfsProcessorSolution)'
          feedsToUse: 'select'
      - task: DotNetCoreCLI@2
        displayName: 'Build $(tfsProcessorSolution)'
        inputs:
          command: 'build'
          projects: '$(tfsProcessorSolution)'
          arguments: '/m /p:DeployExtension=false /p:platform="$(BuildPlatform)" /p:configuration=$(BuildConfiguration) /p:ZipPackageCompressionLevel=normal'
      - task: UseDotNet@2
        inputs:
          packageType: sdk
          version: 5.0.100
          installationPath: $(Agent.ToolsDirectory)/dotnet
      - task: NuGetCommand@2
        displayName: 'NuGet restore $(solution)'
        inputs:
          command: 'restore'
          restoreSolution: '$(solution)'
          feedsToUse: 'select'
      - task: DotNetCoreCLI@2
        displayName: Dotnet restore $(solution)
        inputs:
          command: 'restore'
          projects: '$(solution)'
          feedsToUse: 'select'
      - task: DotNetCoreCLI@2
        displayName: 'Build $(solution)'
        inputs:
          command: 'build'<commit_msg>Update NuGet version on AzPipeline external (#941)<commit_after>pool:
  vmImage: 'windows-latest'

variables:
  - group: sonarsource-build-variables

stages:
- stage: buildAndTests
  displayName: Build and run Unit tests
  jobs:
    - job: build
      pool:
       vmImage: 'windows-latest'
      displayName: 'Build, UT, analyze on SonarCloud'
      variables:
       solution: 'SonarScanner.MSBuild.sln'
       tfsProcessorSolution: 'SonarScanner.MSBuild.TFS.sln'
       buildPlatform: 'Any CPU'
       buildConfiguration: 'Release'
      steps:
      - checkout: self
      - task: NuGetToolInstaller@1
        displayName: 'Use NuGet 5.8.1'
        inputs:
          versionSpec: '5.8.1'
      - task: DotNetCoreCLI@2
        displayName: Dotnet restore $(tfsProcessorSolution)
        inputs:
          command: 'restore'
          projects: '$(tfsProcessorSolution)'
          feedsToUse: 'select'
      - task: NuGetCommand@2
        displayName: 'NuGet restore TFS Processor'
        inputs:
          command: 'restore'
          restoreSolution: '$(tfsProcessorSolution)'
          feedsToUse: 'select'
      - task: DotNetCoreCLI@2
        displayName: 'Build $(tfsProcessorSolution)'
        inputs:
          command: 'build'
          projects: '$(tfsProcessorSolution)'
          arguments: '/m /p:DeployExtension=false /p:platform="$(BuildPlatform)" /p:configuration=$(BuildConfiguration) /p:ZipPackageCompressionLevel=normal'
      - task: NuGetCommand@2
        displayName: 'NuGet restore $(solution)'
        inputs:
          command: 'restore'
          restoreSolution: '$(solution)'
          feedsToUse: 'select'
      - task: DotNetCoreCLI@2
        displayName: Dotnet restore $(solution)
        inputs:
          command: 'restore'
          projects: '$(solution)'
          feedsToUse: 'select'
      - task: DotNetCoreCLI@2
        displayName: 'Build $(solution)'
        inputs:
          command: 'build'
{'fraction_non_alphanumeric': 0.10535535535535535, 'fraction_numerical': 0.008758758758758759, 'mean_word_length': 2.325291181364393, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5741058', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1154, 'n_words': 266}