Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

`%d` Day output from build duration for atlassian/bitbucket-build-statistics:0.2.0 Edited

yysaki I'm New Here Dec 23, 2020

Hello.
Bitbucket Cloud is useful and helpful for my work.

https://jira.atlassian.com/browse/BCLOUD-13637?error=consent_required&error_description=Consent+required&state=9086f647-509f-4ce2-8991-7e5674189e00

I found out about this pipe from the URL above and tried to run it like this:

script:
- pipe: atlassian/bitbucket-build-statistics:0.2.0
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD

 

And I got the following like statistics:

...
+-----------------------------------------------------------------+
| Bitbucket build statistics |
+---------------------------------------+--------+----------------+
| Repository | Builds | Build Duration |
+---------------------------------------+--------+----------------+
| my-company/my-project | 39 | 02:50:46 |
| my-company/other-project | 0 | 00:00:00 |
| .... | 0 | 00:00:00 |
+---------------------------------------+--------+----------------+
✔ Success!

 

I had one problem with this one. The pipe outputs the build duration time with the format of `'%H:%M:%S'`, not minutes. The build duration time for the last 30 days in my repository took about 1610 minutes (calculated based on the CLI at https://github.com/atlassian/build-stats), but at this time it shows `02:50:46` using this pipe. It's format looks like that day `%d` output is missing.

I'd like to know the build duration time for each repository without missing anything, so do you have any plan to add the day output to the format, or unifying the display format with minutes?

1 answer

1 accepted

1 vote
Answer accepted

@yysaki hello! Check out new version 0.2.1 and see if it is fine for you.

Cheers, Galyna

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

642 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you