![38% of CISOs Fear They’re Not Moving Fast Enough on AI](https://cdn.sanity.io/images/cgdhsj6q/production/faa0bc28df98f791e11263f8239b34207f84b86f-1024x1024.webp?w=400&fit=max&auto=format)
Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
grunt-circleci
Advanced tools
This plugin allows to check the status of a CircleCI build associated to a commit. Useful for apps that need to check for a successful status before running a critical task, like the deploy.
First, you need to add the dependency and install it into your project.
npm install grunt-circleci --save-dev
Once intalled, it can be loaded in your Gruntfile with the follwing line:
grunt.loadNpmTasks('grunt-circleci');
In order to configure the plugin, you need to add a new section circleci
to the object in grunt.initConfig()
.
grunt.initConfig({
circleci: {
token: 'MySuperSecretTokenGeneratedOnCircleCI'
username: 'VividCortex',
project: 'grunt-circleci',
commit: 'TheHashOfTheCommit'
}
});
The following options allow to customize the behaviour of the status check:
Type String
Default: master
The name of the branch by which to filter the builds.
Type Boolean
Default: false
Whether the check should retry or not if the build is currently running.
Type Number
Default: 20000
(20 seconds)
The time in milliseconds the check should wait to retry if retryOnRunning is enabled.
Type Number
Default: 600000
(10 minutes)
The time in milliseconds after which the check should fail if the build is still running and retryOnRunning is enabled.
grunt.initConfig({
circleci: {
token: 'MySuperSecretTokenGeneratedOnCircleCI'
username: 'VividCortex',
project: 'grunt-circleci',
commit: 'TheHashOfTheCommit',
options: {
branch: 'master',
retryOnRunning: false,
retryAfter: 2e4,
timeout: 6e5
}
}
});
The basic usage requires you to execute the following simple command:
grunt circleci
If grunt is configured properly, you can use custom values for the commit hash, for instance:
grunt.initConfig({
circleci: {
token: 'MySuperSecretTokenGeneratedOnCircleCI'
username: 'VividCortex',
project: 'grunt-circleci',
commit: grunt.option('commit')
}
});
and run the command as:
grunt circleci --commit=TheHashOfTheCommit
Copyright (c) 2014 VividCortex. Licensed under the MIT license.
FAQs
Grunt plugin to check CircleCI build status
We found that grunt-circleci demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.