Skip to content

Commit

Permalink
diagnostic message and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ovcharenko-di committed Sep 2, 2024
1 parent d5a2ba2 commit c4821dd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/ru/pulsar/jenkins/library/steps/Yaxunit.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,13 @@ class Yaxunit implements Serializable {
def newDbgsPids = getPIDs("dbgs")
def newCoverage41CPids = getPIDs("Coverage41C")

env.YAXUNIT_DBGS_PIDS = (newDbgsPids - currentDbgsPids).join(" ")
env.YAXUNIT_COVERAGE41C_PIDS = (newCoverage41CPids - currentCoverage41CPids).join(" ")
newDbgsPids.removeAll(currentDbgsPids)
newCoverage41CPids.removeAll(currentCoverage41CPids)

env.YAXUNIT_DBGS_PIDS = newDbgsPids.join(" ")
steps.echo("YAXUNIT_DBGS_PIDS = $env.YAXUNIT_DBGS_PIDS")
env.YAXUNIT_COVERAGE41C_PIDS = newCoverage41CPids.join(" ")
steps.echo("YAXUNIT_COVERAGE41C_PIDS = $env.YAXUNIT_COVERAGE41C_PIDS")

}

Expand Down Expand Up @@ -137,6 +142,6 @@ class Yaxunit implements Serializable {
} else {
pids = steps.bat("chcp 65001 > nul \nfor /f \"tokens=2\" %a in ('tasklist ^| findstr $name') do @echo %a", false, true, 'UTF-8')
}
return pids.split('\n').collect{it as String}
return pids.split('\n')
}
}

0 comments on commit c4821dd

Please sign in to comment.