So I got a job working on CirceCI, but I can’t get it working locally.
The config.yml file:
version: 2
jobs:
build:
docker:
# specify the version
- image: circleci/golang:1.10
working_directory: /go/src/github.com/mattnenterprise/tic-tac-toe
steps:
- checkout
# specify any bash command here prefixed with `run: `
- run: echo 'hello'
Local Output:
$ circleci build
====>> Spin up Environment
Build-agent version 0.0.5895-01cdb92 (2018-05-29T20:07:10+0000)
Starting container circleci/golang:1.10
using image circleci/golang@sha256:9ec47660dc3e2e941cc6a2f8baf76d22b3ab00cbe6c2bb50b0cc0c254ee7a48a
Using build environment variables:
BASH_ENV=/tmp/.bash_env-localbuild-1527782862
CI=true
CIRCLECI=true
CIRCLE_BRANCH=master
CIRCLE_BUILD_NUM=
CIRCLE_JOB=build
CIRCLE_NODE_INDEX=0
CIRCLE_NODE_TOTAL=1
CIRCLE_REPOSITORY_URL=https://github.com/mattnenterprise/tic-tac-toe
CIRCLE_SHA1=1daf2e9a08cd8e53f576b87ce52c98a99308b059
CIRCLE_SHELL_ENV=/tmp/.bash_env-localbuild-1527782862
CIRCLE_WORKING_DIRECTORY=/go/src/github.com/mattnenterprise/tic-tac-toe
panic: interface conversion: interface {} is nil, not string
goroutine 1 [running]:
github.com/circleci/build-agent/runner.userInitiaitedHalt(0xf8f200, 0xc420432720, 0xa78d5a)
/go/src/github.com/circleci/build-agent/runner/basic_runner.go:22 +0x10e
github.com/circleci/build-agent/runner.(*BasicRunner).Run(0xc42030ef90, 0xf91140, 0xc42032bb60, 0xf8f200, 0xc420432720)
/go/src/github.com/circleci/build-agent/runner/basic_runner.go:34 +0x4d
github.com/circleci/build-agent/runner.(*Runner).Run(0xc420424e00, 0xf91140, 0xc42032bb60, 0x0, 0x0)
/go/src/github.com/circleci/build-agent/runner/runner.go:87 +0x97b
github.com/circleci/build-agent/cmd.runStep(0xc420345840, 0x7ffeb7b82ed9, 0x30, 0x7ffeb7b82eb3, 0x14, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/circleci/build-agent/cmd/internalStep.go:92 +0x3fc
github.com/circleci/build-agent/cmd.newInternalStepCmd.func1(0xc42029ed80, 0xc42032b800, 0x0, 0x6, 0x0, 0x0)
/go/src/github.com/circleci/build-agent/cmd/internalStep.go:28 +0x49
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).execute(0xc42029ed80, 0xc42032b6e0, 0x6, 0x6, 0xc42029ed80, 0xc42032b6e0)
/go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:650 +0x449
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc42029e6c0, 0x14d7800, 0xc42029eb40, 0xc4203457e0)
/go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:729 +0x2d4
github.com/circleci/build-agent/vendor/github.com/spf13/cobra.(*Command).Execute(0xc42029e6c0, 0xc420084000, 0x1533c66bd185e4a8)
/go/src/github.com/circleci/build-agent/vendor/github.com/spf13/cobra/command.go:688 +0x2b
github.com/circleci/build-agent/cmd.Execute()
/go/src/github.com/circleci/build-agent/cmd/root.go:56 +0x27
main.main()
/go/src/github.com/circleci/build-agent/main.go:14 +0x104
====>> Error executing build steps
Error: Unexpected error running build task: Internal Error - runner failed with exit code: 2
Step failed
Task failed
Error: Internal Error - runner failed with exit code: 2