Skip to content

Commit 5656a41

Browse files
dothebartKVS85
andauthored
invoke machine cleaner (#449)
* invoke machine cleaner * invoke machine cleaner * Suggest review * Update prepareOskar.ps1 Co-authored-by: Vadim Kondratyev <[email protected]>
1 parent 6ba0502 commit 5656a41

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Diff for: jenkins/helper/prepareOskar.ps1

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,16 @@
1313
}
1414
}
1515

16+
If(-Not($env:IS_JENKINS))
17+
{
18+
$env:IS_JENKINS = $true
19+
}
20+
21+
Function clearMachine
22+
{
23+
python.exe "$OSKARDIR\oskar\jenkins\helper\clear_machine.py"
24+
}
25+
1626
$HDD = $(Split-Path -Qualifier $env:WORKSPACE)
1727
If(-Not(Test-Path -PathType Container -Path "$HDD\$env:NODE_NAME"))
1828
{
@@ -67,4 +77,5 @@ If($(Get-Module).Name -contains "oskar")
6777
}
6878
Import-Module "$OSKARDIR\oskar\helper.psm1"
6979
clearResults
80+
If($env:IS_JENKINS) { clearMachine }
7081
clearWorkdir

0 commit comments

Comments
 (0)