• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cliffano / mcp-jenkins / 17003421601

13 Aug 2025 02:22PM UTC coverage: 62.234%. Remained the same
17003421601

push

github

cliffano
Initial commit with check version and build job tools.

5 of 5 branches covered (100.0%)

Branch coverage included in aggregate %.

112 of 183 new or added lines in 4 files covered. (61.2%)

112 of 183 relevant lines covered (61.2%)

1.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.86
/lib/tools/checkJenkinsVersion.js
1
import { z } from "zod";
3✔
2

3✔
3
const info = {
3✔
4
  name: 'check_jenkins_version',
3✔
5
  description: 'Check the version of the Jenkins server',
3✔
6
  parameters: {}
3✔
7
};
3✔
8

3✔
9
/**
3✔
10
 * Handler for checking Jenkins version.
3✔
11
 * @param {Object} nestor: Nestor instance to interact with Jenkins
3✔
12
 * @param {Function} actionCb: callback function to handle Nestor action result
3✔
13
 * @returns {Function} handler function that takes parameters and returns a Promise
3✔
14
 */
3✔
NEW
15
function handler(nestor, actionCb) {
×
NEW
16

×
NEW
17
  return async ({}) => {
×
NEW
18
    function _contentText(result) {
×
NEW
19
      return `Jenkins version is ${result}`;
×
NEW
20
    }
×
NEW
21
    return new Promise((resolve, reject) => {
×
NEW
22
      const cb = actionCb(resolve, reject, _contentText);
×
NEW
23
      nestor.version(cb);
×
NEW
24
    });
×
NEW
25
  };
×
NEW
26

×
NEW
27
}
×
28

3✔
29
const exports = {
3✔
30
  info: info,
3✔
31
  handler: handler
3✔
32
};
3✔
33

3✔
34
export {
3✔
35
  exports as default
3✔
36
};
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc