From 7fb6837ae0870724e0c4762ccec514780f107f92 Mon Sep 17 00:00:00 2001 From: Clint Rutkas Date: Fri, 7 Mar 2025 15:52:50 -0800 Subject: [PATCH] removing precheck as we need all flows to have CI checked off now --- .pipelines/v2/templates/job-ci-precheck.yml | 30 ------------------- .pipelines/v2/templates/pipeline-ci-build.yml | 6 ---- 2 files changed, 36 deletions(-) delete mode 100644 .pipelines/v2/templates/job-ci-precheck.yml diff --git a/.pipelines/v2/templates/job-ci-precheck.yml b/.pipelines/v2/templates/job-ci-precheck.yml deleted file mode 100644 index 6d3616ff69e5..000000000000 --- a/.pipelines/v2/templates/job-ci-precheck.yml +++ /dev/null @@ -1,30 +0,0 @@ -# yaml-language-server: $schema=https://raw.githubusercontent.com/microsoft/azure-pipelines-vscode/master/service-schema.json -jobs: -- job: Precheck - pool: - vmImage: windows-2022 - steps: - - checkout: none - - - pwsh: |- - try { - # Try based on pull request first - $pullRequestNumber = "$(system.pullRequest.pullRequestNumber)"; - $gitHubPullRequest = Invoke-RestMethod -Method Get "https://api.github.com/repos/microsoft/PowerToys/pulls/$pullRequestNumber/files" - # If there are no files updated in the commit that are .md, set skipBuild variable - if(([array]($gitHubPullRequest.filename) -notmatch ".md|.txt").Length -eq 0) { - Write-Host '##vso[task.setvariable variable=skipBuild;isOutput=true]Yes' - Write-Host 'Skipping Build' - } - } - catch { - # Fall back to the latest commit otherwise. - $commit = "$(build.sourceVersion)"; - $gitHubCommit = Invoke-RestMethod -Method Get "https://api.github.com/repos/microsoft/PowerToys/commits/$commit" - if(([array]($githubCommit.files.filename) -notmatch ".md|.txt").Length -eq 0) { - Write-Host '##vso[task.setvariable variable=skipBuild;isOutput=true]Yes' - Write-Host 'Skipping Build' - } - } - displayName: Verify whether we need to build at all - name: verifyBuildRequest diff --git a/.pipelines/v2/templates/pipeline-ci-build.yml b/.pipelines/v2/templates/pipeline-ci-build.yml index 7e4a99308f39..d5f1b64c6eb7 100644 --- a/.pipelines/v2/templates/pipeline-ci-build.yml +++ b/.pipelines/v2/templates/pipeline-ci-build.yml @@ -36,12 +36,6 @@ parameters: default: false stages: - # Allow manual builds to skip pre-check - - ${{ if ne(variables['Build.Reason'], 'Manual') }}: - - stage: Precheck - jobs: - - template: job-ci-precheck.yml - - ${{ each platform in parameters.buildPlatforms }}: - stage: Build_${{ platform }} displayName: Build ${{ platform }}