npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

easy-jenkins-jobs

v0.1.0

Published

An easy way to create multiple Jenkins jobs based on a common name.

Downloads

5

Readme

Easy Jenkins Jobs

Assumptions

  • There are jobs on the Jenkins server that start with 'ejj_template' (this is configurable via the config.coffee file)
    • EJJ will query for all jobs with that prefix and replace it with the name specified in the POST URL

How Do I Trigger This?

  • Send a POST to http://ejj_server:1234
    • [ejj_server] is the server that EJJ is running on
  • include the following in a JSON payload
    • 'jobPrefix': the prefix you will be using to replace 'ejj_template' with
    • 'jenkinsUrl': the URL of the Jenkins server. (http://jenkins:8080/)
      • this will default to 'http://localhost:8080/' if nothing is specified

What Can I Configure?

  • port: (1337) the port that EJJ will listen on
  • jobPrefix: ('ejj_template') the prefix of jobs that will be used as templates. For every job found with this prefix, EJJ will create a copy of it with the passed in 'jobPrefix'.
  • defaultJenkinsUrl: ('http://localhost:8080/') the url that will be used if none is specified in the JSON payload
  • logLevel: ('info') the default logging level. See winston for more information.
  • defaultLogFile: ('logs/app.log') the default place to place log files. By default log files will only get as large as 1MB until a new file is started.

Getting Started

Assuming you already have Node.js and NPM installed, you can follow the below steps exactly.

git clone https://github.com/ingshtrom/easy-jenkins-jobs.git

cd easy-jenkins-jobs

npm install

grunt

node build/index.js

And voila! The server is started and you can start sending requests to the EJJ server.

What Libraries and Tools Was This Built With?

  • Atom.io - Awesome text editor build on-top of Chromium with Node.js
  • MIT License - opens source licensing
  • Node.js - Javascript on the server.
  • NPM - library management
  • Postman - client for testing HTTP APIs
  • winston - logging
  • request - send HTTP requests from Node.js
  • express - an easy way to setup RESTful web services
  • body-parser - a module for ExpressJS to parse 'req.body' into a JSON object
  • grunt - automated build system
  • grunt-contrib-clean - module for Grunt that allows for cleaning up generated directories
  • grunt-coffeelint - module for Grunt that lints CoffeeScript code and stops the build if it fails
  • grunt-contrib-coffee - module for Grunt that 'compiles' CoffeeScript into Javascript