Skip to content

prajyotpro/bitbucket-pipeline-duration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


bitbucket-pipeline-duration

The project focuses on providing functionality to calculate total pipeline minutes per project in a given time.

About The Project

The project is inspired from Bitbucket Pipelines Pipe: Bitbucket build statistics. https://bitbucket.org/atlassian/bitbucket-build-statistics/src/master/

The Objective:

  • Understanding the pipeline duration usage for each project in the workspace.
  • Bitbucket has a pipe to display pipeline minute usage, but the disadvantage of adding the usage pipe in Bitbucket pipelines itself thus increasing the duration.

Current script is setup to fetch pipeline duration for past 31 days (1 month).

Built With

  • Node.js
  • Javascript
  • Bitbucket REST
  • commander

Getting Started

Instructions on setting up your project. To get the project running follow these simple example steps.

Prerequisites

  • npm
    npm install npm@latest -g

Installation

  1. Clone the repo
    git clone https://github.com/prajyotpro/bitbucket-pipeline-duration.git
  2. Install NPM packages
    npm install

Usage

   node index.js -w <workspace> -t <token>

Options

Required:

Optional:

  • -d --days Duration in days.

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the Apache License. See LICENSE for more information.

Contact

Prajyot Khandeparkar - @prajyotpro

Acknowledgments

About

The project focuses on providing functionality to calculate total pipeline minutes per project in a given time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published