diff --git a/eng/pipelines/pr.yml b/eng/pipelines/pr.yml index 211dc829e..9119a0c8b 100644 --- a/eng/pipelines/pr.yml +++ b/eng/pipelines/pr.yml @@ -26,6 +26,13 @@ jobs: parameters: nodeVersion: $(nodeVersion) + - job: docker_build + pool: + vmImage: ubuntu-latest + steps: + - script: docker build -f ./docker/Dockerfile . + displayName: Docker build + - job: Consistency_Check pool: vmImage: ubuntu-latest diff --git a/eng/scripts/check-for-tryit-comment.js b/eng/scripts/check-for-tryit-comment.js index 60822b18d..44075312d 100644 --- a/eng/scripts/check-for-tryit-comment.js +++ b/eng/scripts/check-for-tryit-comment.js @@ -17,7 +17,8 @@ async function main() { const result = await request("GET", url); const data = JSON.parse(result); const azoComments = data.filter((x) => x.user?.login === AZP_USERID); - if (azoComments.length > 1) { + console.log(`Found ${azoComments.length} comments from Azure Pipelines.`); + if (azoComments.length > 0) { console.log("##vso[task.setvariable variable=SKIP_COMMENT;]true"); } }