How to get the details of the job along with it console output using Jenkins REST API
example of builds
console output:
I am using foll
To make scripted clients (such as wget) invoke operations that require authorization (such as scheduling a build), use HTTP BASIC authentication to specify the user name and the API token.
See Authentication with samples