Closed Kesonlin closed 10 months ago
I purposely didn't make parameters a positional argument because it is an object and would be hard to differentiate from opts in all cases.
I'd recommend submitting a PR to DefinitelyTyped to fix the types if you don't want to use the build({ name, parameters })
format.
Which should be:
build(name: string, opts?: JobBuildOptions): Promise<any>;
when we use this api like:
await jenkins.build(jobName, parameters)
it throws an error "nothing is submitted"
and we have to use like below:
await jenkins.build(jobName, {parameters})