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

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

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

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

421 views 13 14
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