What
# Get a CSV list of package names.
$packages = $(go list ./... | select-string -Pattern "/vendor/" -NotMatch | select-string -Pattern "/scripts/cmd/" -NotMatch)
$packages = ($packages|group|Select -ExpandProperty Name) -join ","
exec { go test -race -c -cover -covermode=atomic -coverpkg $packages } "go test -race -cover FAILURE"
Stacktrace
>> build: Building winlogbeat
Unit testing winlogbeat
>> go test: Unit Testing
SUMMARY:
Fail: 0
Skip: 1
Pass: 37
Packages: 7
Duration: 33.6865234s
Coverage Report: C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.html
JUnit Report: C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.xml
Output File: C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\build\TEST-go-unit.out
>> go test: Unit Test Passed
System testing winlogbeat
....EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
======================================================================
ERROR: eventlogging - Add custom fields (not under root)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\tests\system\winlogbeat.py", line 46, in setUp
self.testSuffix = "_" + hashlib.sha256(self.api + self._testMethodName).hexdigest()[:5]
TypeError: Unicode-objects must be encoded before hashing
======================================================================
ERROR: eventlogging - Add tags and custom fields under root
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Users\jenkins\workspace\elastic+beats+6.8+multijob-windows\beat\winlogbeat\label\windows\src\github.com\elastic\beats\winlogbeat\tests\system\winlogbeat.py", line 46, in setUp
self.testSuffix = "_" + hashlib.sha256(self.api + self._testMethodName).hexdigest()[:5]
TypeError: Unicode-objects must be encoded before hashing

build if the build is gone please refers to the below gist:
What
Stacktrace
build if the build is gone please refers to the below gist: