{"action":"opened","issue":{"url":"https://api.github.com/repos/drone/drone/issues/2566","repository_url":"https://api.github.com/repos/drone/drone","labels_url":"https://api.github.com/repos/drone/drone/issues/2566/labels{/name}","comments_url":"https://api.github.com/repos/drone/drone/issues/2566/comments","events_url":"https://api.github.com/repos/drone/drone/issues/2566/events","html_url":"https://github.com/drone/drone/issues/2566","id":396076610,"node_id":"MDU6SXNzdWUzOTYwNzY2MTA=","number":2566,"title":"Unable to fetch stage details when using string interpolation in pipeline","user":{"login":"tjimsk","id":40155733,"node_id":"MDQ6VXNlcjQwMTU1NzMz","avatar_url":"https://avatars2.githubusercontent.com/u/40155733?v=4","gravatar_id":"","url":"https://api.github.com/users/tjimsk","html_url":"https://github.com/tjimsk","followers_url":"https://api.github.com/users/tjimsk/followers","following_url":"https://api.github.com/users/tjimsk/following{/other_user}","gists_url":"https://api.github.com/users/tjimsk/gists{/gist_id}","starred_url":"https://api.github.com/users/tjimsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tjimsk/subscriptions","organizations_url":"https://api.github.com/users/tjimsk/orgs","repos_url":"https://api.github.com/users/tjimsk/repos","events_url":"https://api.github.com/users/tjimsk/events{/privacy}","received_events_url":"https://api.github.com/users/tjimsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-01-04T21:39:46Z","updated_at":"2019-01-04T21:39:46Z","closed_at":null,"author_association":"NONE","body":"I added the following in my `.drone.yml`:\r\n\r\n```yaml\r\nenvironment:\r\n  build_number: ${BUILD_NUMBER}\r\n```\r\n\r\nand this shows up in my logs:\r\n\r\n```yaml\r\n{\"commit\":\"bd36d59f700cdf217d8efc030ebe3d4dec7b4fc0\",\"event\":\"push\",\"level\":\"debug\",\"msg\":\"webhook parsed\",\"name\":\"bazare-public\",\"namespace\":\"tjimsk\",\"time\":\"2019-01-04T21:15:04Z\"}\r\n{\"commit\":\"bd36d59f700cdf217d8efc030ebe3d4dec7b4fc0\",\"event\":\"push\",\"level\":\"debug\",\"msg\":\"trigger: received\",\"ref\":\"refs/heads/master\",\"repo\":\"<repository-name>\",\"time\":\"2019-01-04T21:15:04Z\"}\r\n{\"fields.time\":\"2019-01-04T21:15:06Z\",\"latency\":1589002566,\"level\":\"debug\",\"method\":\"POST\",\"msg\":\"\",\"remote\":\"10.28.3.5:51760\",\"request\":\"/hook\",\"request-id\":\"596a9389-0fe3-4f72-b3c8-a815e94c1e15\",\"time\":\"2019-01-04T21:15:06Z\"}\r\n{\"level\":\"debug\",\"machine\":\"drone-74666b56c4-lqt8k\",\"msg\":\"manager: accept stage\",\"stage-id\":2,\"time\":\"2019-01-04T21:15:06Z\"}\r\n{\"level\":\"debug\",\"machine\":\"drone-74666b56c4-lqt8k\",\"msg\":\"manager: stage accepted\",\"stage-id\":2,\"time\":\"2019-01-04T21:15:06Z\"}\r\n{\"level\":\"debug\",\"msg\":\"manager: fetching stage details\",\"step-id\":2,\"time\":\"2019-01-04T21:15:06Z\"}\r\n{\"arch\":\"amd64\",\"build\":2,\"error\":\"runtime error: invalid memory address or nil pointer dereference\",\"level\":\"error\",\"machine\":\"drone-74666b56c4-lqt8k\",\"msg\":\"runner: unexpected panic\",\"os\":\"linux\",\"pipeline\":\"public\",\"repo\":\"<repository-name>\",\"stage\":1,\"time\":\"2019-01-04T21:15:06Z\"}\r\n{\"arch\":\"amd64\",\"level\":\"debug\",\"machine\":\"drone-74666b56c4-lqt8k\",\"msg\":\"runner: polling queue\",\"os\":\"linux\",\"time\":\"2019-01-04T21:15:06Z\"}\r\n{\"arch\":\"amd64\",\"kernel\":\"\",\"level\":\"debug\",\"msg\":\"manager: request queue item\",\"os\":\"linux\",\"time\":\"2019-01-04T21:15:06Z\",\"variant\":\"\"}\r\n{\"level\":\"debug\",\"msg\":\"events: stream eror\",\"request-id\":\"729b25b5-260a-457c-be9e-f1b51bb7b4dc\",\"time\":\"2019-01-04T21:16:12Z\",\"user.admin\":true,\"user.login\":\"tjimsk\"}\r\n{\"level\":\"debug\",\"msg\":\"events: stream closed\",\"request-id\":\"729b25b5-260a-457c-be9e-f1b51bb7b4dc\",\"time\":\"2019-01-04T21:16:12Z\",\"user.admin\":true,\"user.login\":\"tjimsk\"}\r\n```\r\n\r\nThe pipeline gets stuck instead of reporting it can't find the variable.  That should be handled better as even the logs don't really say that much.\r\n"}}
{"actor":{"display_login":"tjimsk"}}