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

cliffano / mcp-jenkins / 17003082131

13 Aug 2025 02:22PM UTC coverage: 62.234%. First build
17003082131

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%)

0.61 hits per line

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

71.74
/lib/cli.js
1
"use strict";
1✔
2
import bag from 'bagofcli';
1✔
3
import fs from 'fs';
1✔
4
import McpJenkins from './mcpJenkins.js';
1✔
5
import p from 'path';
1✔
6

1✔
7
const APP_DIR = process.cwd(),
1✔
8
  DIRNAME = p.dirname(import.meta.url).replace('file://', '');
1✔
9

1✔
NEW
10
function _run(args) {
×
NEW
11

×
NEW
12
  const pkgFile = p.join(DIRNAME, '..', 'package.json');
×
NEW
13
  const pkg = JSON.parse(fs.readFileSync(pkgFile));
×
NEW
14

×
NEW
15
  const opts = {
×
NEW
16
    url: process.env.JENKINS_URL || 'http://localhost:8080'
×
NEW
17
  };
×
NEW
18

×
NEW
19
  const mcpJenkins = new McpJenkins(pkg.name, pkg.version, opts);
×
NEW
20
  mcpJenkins.run();
×
NEW
21

×
NEW
22
}
×
23

1✔
24
/**
1✔
25
 * Execute MCP Jenkins.
1✔
26
 */
1✔
27
function exec() {
1✔
28

1✔
29
  const actions = {
1✔
30
    commands: {
1✔
31
      run : { action: _run }
1✔
32
    }
1✔
33
  };
1✔
34

1✔
35
  bag.command(DIRNAME, actions);
1✔
36
}
1✔
37

1✔
38
const exports = {
1✔
39
  exec: exec
1✔
40
};
1✔
41

1✔
42
export {
1✔
43
  exports as default
1✔
44
};
1✔
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

© 2026 Coveralls, Inc