hook-ci

1.62.11 • Public • Published

npm License minified size downloads GitHub Issues Build Status Coverage Status

hook-ci

simple ci to be triggered by git hooks

API

Table of Contents

defaultQueuesConfig

default configuration for queues

queueTypes

map queue names to processing

analyseJob

analyse the incoming job and prepare the steps to be executed in the processing queue(s)

Parameters

extractCINotification

extract ci notification from line

Parameters

Returns string notification body or undefined

streamIntoJob

add log entries to a job

Parameters

  • stream ReadableStream
  • job Job
  • step
  • notificationHandler Function

stripUnusedDataFromHookRequest

strip away currently unused request data

Parameters

  • request Object decodec webhook request data

Returns Object stipped down request data

wellKnownScripts

npm buildin scripts

buildAnalyse

search for build.sh

Parameters

  • branch
  • job
  • config
  • wd

authenticate

authorize user / password

Parameters

Returns Set<string> entitlements

accessTokenGenerator

Generate a request handler to deliver JWT access tokens

Parameters

Returns any request handler return jwt token

LocalNode

Extends Node

the node we are ourselfs

Parameters

  • name
  • options

Package Sidebar

Install

npm i hook-ci

Weekly Downloads

4

Version

1.62.11

License

BSD-2-Clause

Unpacked Size

55.6 kB

Total Files

19

Last publish

Collaborators

  • arlac77