Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate type definition on publish #120

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

trinhpham
Copy link

Overview

This auto type definition generation does not make correct models for response object. But if help to remove TS complaints from target project.
The best way to have up-to-date TS def is convert this project to TS, which is depend on package owner decision :)

Sample usage

Create jenkins connection object

// The package here is my test package for this PR
import Jenkins = require('@trinhpham/jenkins');

const jenkinsConnection = new Jenkins(jenkinsUrl, {
  crumbIssuer: true,
});

Get a queued item

const queuedItem = await jenkinsConnection.queue.item(buildNumber, undefined);

Trigger a build

const data = await jenkinsConnection.job.build(jobName, {
  parameters: {
    PARAM1: myParam,
  },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant