The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

yysaki
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 21, 2021

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

Cheers, Galyna

TAGS
AUG Leaders

Atlassian Community Events