• 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

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

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

3✔
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

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

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

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

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

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