recink-cnci

0.0.17 • Public • Published

REciNK Component for CNCI

This is a REciNK component, which helps you integrate with Cloud Native CI (aka CNCI)

Prerequisites

  • Node.js >= v6.x
  • NPM >= v3.x
  • REciNK

Installation

  • npm install -g recink-cnci

Note that the component is installed automatically when running recink component add recink-cnci

Configuration

  • .recink.yml configuration example:
$:
  preprocess:
    '$.cnci.token': 'eval'
    '$.cnci.ci.options.user': 'eval'
    '$.cnci.ci.options.token': 'eval'
    '$.cnci.ci.options.jobName': 'eval'
    '$.cnci.ci.options.buildNumber': 'eval'
 
  cnci:
    token: process.env.CNCI_TOKEN               # Cloud Native CI API token 
    ci:                                         # CI configuration 
      provider: jenkins                         # CI provider [available: jenkins] 
      options:
        user: process.env.JENKINS_USER          # User & token to call Jenkins API 
        token: process.env.JENKINS_TOKEN
        domain: jenkins.mitocgroup.com          # Domain [optional, default = 127.0.0.1] 
        jobName: process.env.JOB_NAME           # Job name 
        buildNumber: process.env.BUILD_NUMBER   # Build number [optional] 

Usage

  • To parse & analyze .tfstate and .tfplan files
recink run terraform -c cnci
  • To upload CI metadata
recink run cnci --sync

This should be run in a post-build step

Package Sidebar

Install

npm i recink-cnci

Weekly Downloads

0

Version

0.0.17

License

MPL-2.0

Unpacked Size

14.3 kB

Total Files

8

Last publish

Collaborators

  • mitocgroup