Skip to content

how to get buildname used in jenkins.console_output #69

Open

Description

@zhiyoo
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 ...."

Activity

  1. CosPie commented on Mar 17, 2020

    @CosPie

    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 .

  2. HUANGJI97 commented on Feb 1, 2024

    @HUANGJI97

    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

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