
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
grunt-jenkins-build-number
Advanced tools
Retrieves the latest build number/state from Jenkins.
If you haven't used grunt before, be sure to check out the Getting Started guide.
From the same directory as your project's Gruntfile and package.json, install this plugin with the following command:
npm install grunt-jenkins-build-number
Once that's done, add this line to your project's Gruntfile:
grunt.loadNpmTasks('grunt-jenkins-build-number');
Inside your Gruntfile.js
file add a section named jenkinsBuildNumber
. This section specifies the
options to provide the build state you want, the project name and the credentials if Jenkins
server has authentication enabled.
Allowed build states are:
Example to tag a new successful version based on the latest build number and environment:
jenkinsBuildNumber: {
dist: {
options: {
hostname: 'jenkins.mycompany.com',
port: 8080, //defaults to 80 if none chosen
state: 'lastSuccessfulBuild',
username: process.env.JENKINS_USERNAME,
password: process.env.JENKINS_PASSWORD,
projectName: 'myproject-' + process.env.ENVIRONMENT
}
}
},
Copyright (c) 2013 Juan Pablo Garcia Licensed under the MIT license.
FAQs
Retrieves the latest build number/state from Jenkins.
The npm package grunt-jenkins-build-number receives a total of 9 weekly downloads. As such, grunt-jenkins-build-number popularity was classified as not popular.
We found that grunt-jenkins-build-number 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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.