GithubHelp home page GithubHelp logo

jenkins-mock-extended's Introduction

jenkins-api-mock Dependency Status

This project mocks a jenkins server. The intention of this project was a test driver for https://github.com/knalli/pi-jenkins.

Usage

Start the server with npm start. However, this is only a shortcut which executes lib/jenkins-api-mock.coffee using CoffeeScript.

The port of the server is 8000.

Overview

GET http://localhost:8000/api/json returns an object of the (master) node. This inconcludes the property jobs with an array of all defined jobs.

Get Job Details

GET http://localhost:8000/job/:jobName/api/json returns an object of the job with the id/name jobName. This inconcludes the property builds with an array of all run builds.

Get Job Build Details

GET http://localhost:8000/job/:jobName/:build/api/json returns an object of the job's build with the id/name jobName and the build query build. The last parameter can be either an existing build number of a symbolic link like lastStableBuild.

Create Job

GET http://localhost:8000/job/create?name=:name creates a new job with a name. This returns the job just like the read variant.

Create Job Build

GET http://localhost:8000/job/:jobName/createBuild?duration=:duration&result=:result creates a new build for jobName. Use the option duration for a deferred build finish, result for a specific result (SUCCESS as default, see Jenkins API.

Note: Yep, the modifying commands aren't very well REST like. But this have to be a nice test driver utility which have to be works in a browser as well in CLI environments.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Release History

(Nothing yet)

License

Copyright (c) 2012 Jan Philipp Licensed under the MIT license.

jenkins-mock-extended's People

Contributors

knalli avatar

Watchers

 avatar

Forkers

qaprosoft

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.