some functions are missing/not available
See original GitHub issuei am getting this error:
TypeError: jenkins.all_builds is not a function
so i decided to print the jenkins object like this
var jenkinsapi = require('jenkins-api');
var jenkins = jenkinsapi.init('https://${username}:${token}@my-jenkins-uri');
console.log(jenkins)
and from the follow output it seems that some functions are missing for some reason…
{ build: [Function: build], stop_build: [Function: stop_build], all_jobs: [Function: all_jobs], all_jobs_in_view: [Function: all_jobs_in_view], job_info: [Function: job_info], last_build_info: [Function: last_build_info], last_completed_build_info: [Function: last_completed_build_info], build_info: [Function: build_info], last_build_report: [Function: last_build_report], get_config_xml: [Function: get_config_xml], create_job: [Function: create_job], update_job: [Function: update_job], copy_job: [Function: copy_job], delete_job: [Function: delete_job], disable_job: [Function: disable_job], enable_job: [Function: enable_job], last_success: [Function: last_success], last_result: [Function: last_result], queue: [Function: queue], computers: [Function: computers], job_output: [Function: job_output] }
I am using node v6.11.1. Any ideas?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6

Top Related StackOverflow Question
@andreash92 Hay, thanks for the note. NPM holds what the original devs deployed as a stable version two years ago and I’m trying to do quite some upgrade (there were 13 PRs waiting) and testing before I publish the next version. Please be patient.
@andreash92, @chrisallmark the version 0.3.1 is out now 😉