Drone 0.8.1 fails to set CI status on GitHub

Hello,

Getting the below error setting build status. I googled it first and fixed my DRONE_HOST but it doesn’t appear to have done the job.

Same as: Build Status updated on Drone Dashboard but not on GitHub

time="2017-11-17T18:49:47Z" level=error msg="error setting commit status for tropo-operations/hello-drone/12"

.drone.yml

pipeline:
  build:
    image: ubuntu:latest
    commands: cat hello.txt

Env vars:

            "Env": [
                "VIRTUAL_HOST=drone.ccs.tropo.com",
                "VIRTUAL_PORT=8000",
                "DRONE_HOST=http://drone.ccs.tropo.com",
                "DRONE_SERVER_HOST=drone.ccs.tropo.com",
                "DRONE_GITHUB=true",
                "DRONE_GITHUB_URL=https://sqbu-github.cisco.com",
                "DRONE_GITHUB_CLIENT=<<THE CLIENT>>",
                "DRONE_GITHUB_SECRET=<<THE SECRET>>",
                "DRONE_GITHUB_PRIVATE_MODE=true",
                "DRONE_GITHUB_GIT_USERNAME=<<THE USERNAME>>",
                "DRONE_GITHUB_GIT_PASSWORD=<<THE PASSWORD>>",
                "DRONE_OPEN=True",
                "DRONE_SECRET=secret",
                "DRONE_DEBUG=true",
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "DATABASE_DRIVER=sqlite3",
                "DATABASE_CONFIG=/var/lib/drone/drone.sqlite",
                "GODEBUG=netdns=go",
                "XDG_CACHE_HOME=/var/lib/drone"
            ],

I recommend removing DRONE_SERVER_HOST from the configuration. It is an alias for DRONE_HOST and is probably overriding the value. This would result in a malformed target url being sent to GitHub when creating the status, and would explain the error.

                "DRONE_HOST=http://drone.ccs.tropo.com",
-               "DRONE_SERVER_HOST=drone.ccs.tropo.com",

Apparently DRONE_HOST and DRONE_SERVER_HOST are the same thing. Which one is deprecated?

Great, thanks Brad. I’ll remove it from our config.

PS: THANK YOU for Drone.