Dumping TLS certificate chain from PeerCertificates

This is an attempt to fix a braking changes introduced in go 1.9
https://github.com/golang/go/issues/24685
20 jobs for 3202-dump-certificates in 27 minutes and 58 seconds (queued for 42 seconds)
latest
Status Job ID Name Coverage
  Prebuild
passed #68526540
docker
bindata

00:04:52

passed #68526541
clone test repo

00:02:13

manual #68526542
allowed to fail manual
review-docs-deploy
 
  Test
passed #68526543
codequality

00:00:59

passed #68526546
docs check links

00:01:04

passed #68526549
git 1.7.1

00:01:58

failed #68526547
integration windows allowed to fail
integration windows

00:00:02

passed #68526548
docker
race conditions detector

00:06:50

failed #68526545
docker allowed to fail
unit tests

00:06:41

passed #68526544
docker
unit tests (no race)

00:07:43

 
  Build
passed #68526550
docker
binaries darwin/386 darwin/amd64

00:03:02

passed #68531013
docker
binaries freebsd/386 freebsd/amd64 freebsd/arm

00:03:28

passed #68526552
docker
binaries linux/386 linux/amd64 linux/arm

00:03:34

passed #68526553
docker
binaries windows/386 windows/amd64

00:02:29

failed #68526551
docker
binaries freebsd/386 freebsd/amd64 freebsd/arm

00:04:47

 
  Package
passed #68526554
docker
package-deb

00:02:32

passed #68526555
docker
package-rpm

00:02:58

 
  Release
passed #68526556
release
development S3

00:01:27

passed #68526557
docker
development docker images

00:05:17

 
  Cleanup
manual #68526558
allowed to fail manual
review-docs-cleanup
 
Name Stage Failure
failed
integration windows Test There is an unknown failure, please try again
empty.
At C:\Users\gitlab\AppData\Local\Temp\build_script409869502\script.ps1:129 char:3
+ Remove-Item -Force -Recurse "c:\gitlab-runner\builds\7816523a\0\gitlab-org\git ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (C:\gitlab-runne...g\gitlab-runner:DirectoryInfo) [Remove-Item], IOException
+ FullyQualifiedErrorId : RemoveFileSystemItemIOError,Microsoft.PowerShell.Commands.RemoveItemCommand
Cloning repository...
fatal: destination path 'c:/gitlab-runner/builds/7816523a/0/gitlab-org/gitlab-runner' already exists and is not an empty directory.
ERROR: Job failed: exit status 1
failed
unit tests Test
ok  	gitlab.com/gitlab-org/gitlab-runner/helpers/url	1.020s	coverage: 100.0% of statements
? gitlab.com/gitlab-org/gitlab-runner/helpers/virtualbox [no test files]
ok gitlab.com/gitlab-org/gitlab-runner/network 6.555s coverage: 82.0% of statements
? gitlab.com/gitlab-org/gitlab-runner/scripts [no test files]
ok gitlab.com/gitlab-org/gitlab-runner/shells 1.058s coverage: 29.6% of statements
? gitlab.com/gitlab-org/gitlab-runner/shells/mocks [no test files]
Makefile:195: recipe for target 'test' failed
make: *** [test] Error 1
ERROR: Job failed: exit code 1