Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Use JavaScript to call Jenkins API
npm install l-jenkins
const Jenkins = require('l-jenkins');
const jenkins = new Jenkins({
url: 'your_jenkins_url',
token: 'your_jenkins_token',
username: 'your_jenkins_username',
password: 'your_jenkins_password'
});
jenkins.createJob(your_job_name, 'xmlConfigString');
jenkins.removeJob(your_job_name);
jenkins.build(your_job_name);
const options = { param1: 'value1', parameter2: 'value2'};
jenkins.buildWithParams(your_job_name, options);
const options = { param1: 'value1', parameter2: 'value2'};
jenkins.buildByBlueOcean(your_job_name, options);
the different between blueocean service and default jenkins service is that using blueocean service can got build number immediately, and the default jenkins service can only got queueId, if you use the default jenkins to build your job, you should use queueId to got build number, and then got the build info of your job;
jenkins.getQueueInfo(queueId);
jenkins.getBuildInfo(your_job_name, build_number);
jenkins.getBuildLog(your_job_name, build_number);
jenkins.getBuildHistory(your_job_name);
jenkins.stopBuild(your_job_name, build_number);
FAQs
async jenkins api client
The npm package l-jenkins receives a total of 0 weekly downloads. As such, l-jenkins popularity was classified as not popular.
We found that l-jenkins demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.