publishstatus-bitbucket
v0.6.2
Published
Command line NodeJS tool - Publish Commit Status to Bitbucket Server (Atlassian Stash).
Downloads
5
Maintainers
Readme
Publish build status to Bitbucket
Simple NodeJs command line application to publish commit status to Bitbucket (Atlassian Stash).
https://www.npmjs.com/package/publishstatus-bitbucket
Install locally and run the command using npx command
- npm install publishstatus-bitbucket
- npx publishstatus-bitbucket
Install globally and run the command
- npm install -g publishstatus-bitbucket
- publishstatus-bitbucket
Run the command using the source code
- git clone https://github.com/denis1stomin/publishstatus-bitbucket
- cd publishstatus-bitbucket
- nodejs ./publishstatus-bitbucket.js
or
npm run publish
Parameters description
To get a full list of parameters run publishstatus-bitbucket -h
Below you can find an example for linux command line environment.
This example can be used to publish build status in Azure Pipelines job.
BITBUCKET_SERVER=your bitbucket server url origin BUILD_URI=url which will be shown in bitbucket common status export BITBUCKET_USERNAME=user name or service principal name export BITBUCKET_PASSWORD=password
publishstatus-bitbucket -b "$BITBUCKET_SERVER" -c "$(Build.SourceVersion)" -p "$(Build.DefinitionName)" -l "$BUILD_URI" -s "SUCCESSFUL" -n "Azure DevOps / $(Build.DefinitionName) #$(Build.BuildNumber)"