Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bitbucket-utils

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-utils

A set of cli and node.js utility helpers for working with Bitbucket repositories

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by850%
Maintainers
1
Weekly downloads
 
Created
Source

Bitbucket Utilities

A set of cli and node.js utility helpers for working with Bitbucket repositories

Trigger Bitbucket Pipeline

Trigger a repo's Pipelines to run for a specific branch. See example-pipeline-trigger.json for formatting. This can be called either by importing in the node.js runtime or from the command line.

PRO-TIP: Great to use for triggering downstream builds

Environment variables need to be set for the following:

PIPELINES_USERNAME

PIPELINES_PASSWORD

The quick & easiest way to do this is by having a user who has access to go into their Bitbucket settings and create an "App Password" with specific access to "read/write pipeplines". Then that user can set those as Pipelines Variables under their config or the specific projects Pipelines env vars.

const triggerPipelines = require('pipeline-trigger')

const configs = [
  {
    "branch": "master",
    "workspace": "teamOrUser",
    "repo_slug": "repoName"
  }
]

triggerPipelines(configs)

CLI

npm-update --regex somenamepattern This will match any dependency names found in package.json and run npm update for those packages

trigger-pipelines [relative file path] The file path is a JSON file that matches the file example-pipeline-trigger.json in this repo.

Keywords

FAQs

Package last updated on 05 Jun 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc