CI Runner panics when uploading artifacts, breaking the build pipeline
Summary
CI Runner (gitlab-ci-multi-runner 1.3.2 (0323456)) panics when uploading artifacts.
Steps to reproduce
Unsure.
This ran on gitlab.com. I would give the Gitlab team access to the full build log, but not in a public issue.
Expected behavior
The process should finish successfully, and thereby not break the build.
Relevant logs and/or screenshots
Uploading artifacts...
build/: found 2 matching files
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x579eb7]
goroutine 1 [running]:
panic(0x8c0900, 0xc8200140a0)
/usr/local/go/src/runtime/panic.go:481 +0x3e6
main.main.func1()
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/apps/gitlab-runner-helper/main.go:37 +0x77
panic(0x8c0900, 0xc8200140a0)
/usr/local/go/src/runtime/panic.go:443 +0x4e9
gitlab.com/gitlab-org/gitlab-ci-multi-runner/network.(*GitLabClient).UploadRawArtifacts(0xc820028058, 0x269709, 0x7ffc613bb41a, 0x14, 0x7ffc613bb3fc, 0x15, 0xc820016016, 0x33, 0x7f1e24b42db0, 0xc820028068, ...)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/network/gitlab.go:323 +0x1607
gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers.(*ArtifactsUploaderCommand).createAndUpload(0xc8200c4210, 0x495100, 0x0, 0x0)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers/artifacts_uploader.go:42 +0x34c
gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers.(*ArtifactsUploaderCommand).(gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers.createAndUpload)-fm(0x0, 0x0, 0x0)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers/artifacts_uploader.go:73 +0x2e
gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers.(*retryHelper).doRetry(0xc8200c4280, 0xc8201094f0, 0x0, 0x0)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers/retry_helper.go:14 +0x38
gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers.(*ArtifactsUploaderCommand).Execute(0xc8200c4210, 0xc8200d81e0)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/commands/helpers/artifacts_uploader.go:73 +0x27c
gitlab.com/gitlab-org/gitlab-ci-multi-runner/common.(Commander).Execute-fm(0xc8200d81e0)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/common/command.go:24 +0x3c
gitlab.com/gitlab-org/gitlab-ci-multi-runner/vendor/github.com/codegangsta/cli.Command.Run(0x9af780, 0x12, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9eb2a0, 0x2c, 0x0, ...)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/vendor/github.com/codegangsta/cli/command.go:127 +0x1055
gitlab.com/gitlab-org/gitlab-ci-multi-runner/vendor/github.com/codegangsta/cli.(*App).Run(0xc82008e800, 0xc82000a0c0, 0xc, 0xc, 0x0, 0x0)
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/vendor/github.com/codegangsta/cli/app.go:159 +0xc34
main.main()
/go/src/gitlab.com/gitlab-org/gitlab-ci-multi-runner/apps/gitlab-runner-helper/main.go:60 +0x280
ERROR: Build failed: exit code 1