Skip to content

Task_Definition not really optional #1

@matteosuppo

Description

@matteosuppo

If you leave out the task_definition option it registers as undefined instead of null ans so the plugin crashes with

Dron Plugin Error { Error: ENOENT: no such file or directory, open '/drone/src/github.com/my/repo/undefined'
   at Error (native)
   at Object.fs.openSync (fs.js:634:18)
   at Object.fs.readFileSync (fs.js:502:33)
   at Object.readFileSync (/drone-ecs-node/node_modules/jsonfile/index.js:61:20)
   at /drone-ecs-node/app.js:845:37
   at process._tickDomainCallback (internal/process/next_tick.js:129:7)
   at Module.runMain (module.js:577:11)
   at run (node.js:348:7)
   at startup (node.js:140:9)
   at node.js:463:3
 errno: -2,
 code: 'ENOENT',
 syscall: 'open',
 path: '/drone/src/github.com/my/repo/undefined' } Error: ENOENT: no such file or directory, open '/drone/src/github.com/my/repo/undefined'
   at Error (native)
   at Object.fs.openSync (fs.js:634:18)
   at Object.fs.readFileSync (fs.js:502:33)
   at Object.readFileSync (/drone-ecs-node/node_modules/jsonfile/index.js:61:20)
   at /drone-ecs-node/app.js:845:37
   at process._tickDomainCallback (internal/process/next_tick.js:129:7)
   at Module.runMain (module.js:577:11)
   at run (node.js:348:7)
   at startup (node.js:140:9)
   at node.js:463:3
[info] build failed (exit code 1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions