Skip to content

Commit acacf9b

Browse files
Merge pull request #299 from github/azure_pipelines
Detect Agent.Worker.exe
2 parents fdb0d48 + 9a7b7cb commit acacf9b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

lib/init.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/init.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ export async function injectWindowsTracer(
155155
Write-Host "Found Runner.Worker.exe process which means we are running on GitHub Actions"
156156
Write-Host "Aborting search early and using process: $p"
157157
Break
158+
} elseif ($p[0].Name -eq "Agent.Worker.exe") {
159+
Write-Host "Found Agent.Worker.exe process which means we are running on Azure Pipelines"
160+
Write-Host "Aborting search early and using process: $p"
161+
Break
158162
} else {
159163
$id = $p[0].ParentProcessId
160164
}

0 commit comments

Comments
 (0)