🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

pn-analytics-deployments

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pn-analytics-deployments

Node utility CLI for bitbucket pipelines to publish deployment details to the analytics team

1.0.5
latest
npm
Version published
Maintainers
1
Created
Source

pn-analytics-deployments

Node utility CLI for bitbucket pipelines to publish deployment details to the analytics team

Features

  • SIMPLIFIES PUBLISHING DEPLOYMENT DATA TO DAD
  • SETS THE LATEST COMMIT MESSAGE TO THE MESSAGE SENT
  • GETS THE CURRENT REPO NAME FROM BITBUCKET ENV VARS

Setup

  • Setup environment variables
    • DAD_SLACK_CHANNEL - this refers to your teams slack channel, where your team would be contacted. Needs to match: /^[a-z0-9_\\-]+$/. This env var is optional, you can pass the value as parameter to the script aswell using --slackChannel
    • DAD_TEAM_NAME - this refers to your teams name. Needs to match: /^[a-z0-9\\-]+$/. This env var is optional, you can pass the value as a parameter to the script using --teamName
    • DAD_URL_DEV - the dad deployments url for dev
    • DAD_URL_PROD - the dad deployments url for production
  • Installing
    • npm install pn-analytics-deployments
  • Running
    • ./node_modules/.bin/pn-publish-deployments --stage dev

Example

# bitbucket pipeline configuration

stepdefinitions:
  - publish-deployment-status: &publish-deployment-status
      name: publish-deployment-status
      
      script:
        - ./node_modules/.bin/pn-publish-deployments --stage dev # dev or prod is the only valid options

pipelines:
  default:
    - step: *your-fancy-stuff
    - step: *publish-deployment-status

FAQs

Package last updated on 17 Jun 2020

Did you know?

Socket

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.

Install

Related posts