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

how to get buildname used in jenkins.console_output #69

Open
zhiyoo opened this issue Apr 18, 2018 · 2 comments
Open

how to get buildname used in jenkins.console_output #69

zhiyoo opened this issue Apr 18, 2018 · 2 comments

Comments

@zhiyoo
Copy link

zhiyoo commented Apr 18, 2018

jenkins.console_output('iosBuild', '#415', { depth: 1 }, function (err, data) {
    if (err) { return console.log(err); }
    console.log(data)
});

when i write this way, data.body is a jenkins html
is this right ?
i think data.body should be the log of the build,like this "started by user ...."

@CosPie
Copy link

CosPie commented Mar 17, 2020

remove '#' symbol , and try it again :

jenkins.console_output('iosBuild','415', { depth: 1 }, function (err, data) {
    if (err) { return console.log(err); }
    console.log(data)
});

It works for me .

@HUANGJI97
Copy link

remove '#' symbol , and try it again :

jenkins.console_output('iosBuild','415', { depth: 1 }, function (err, data) {
    if (err) { return console.log(err); }
    console.log(data)
});

It works for me .

hello,what is ‘415’ ?In your example , is queueId in the jenkins.build() success result data?

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

No branches or pull requests

3 participants