Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compact average duration column in minutes #16

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

ssbarnea
Copy link

No description provided.

@ssbarnea ssbarnea force-pushed the compact-duration branch from a976493 to 242f10d Compare May 12, 2017 11:19
@ssbarnea
Copy link
Author

You can see here how the new column looks:
zzz jenkins 2017-05-12 12-17-09

I also has a tooltip with the long name, making it accessible.

<url>http://repo.jenkins-ci.org/public/</url>
</pluginRepository>
</pluginRepositories>

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The repositories are already contained in the parent POM, so there is no need to redefine them.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I guess I missed something but without these lines mvn package fails to build. Only with these lines it the project will build.

See https://gist.github.com/ssbarnea/5e7afb65cf4db3885c9814d2ed657cca

I think that you did not encounter these errors because your did pre-customize your mvn config.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right. I have defined it in my Maven settings.xml. This is recommended, see https://wiki.jenkins-ci.org/display/JENKINS/Plugin+tutorial#Plugintutorial-SettingUpEnvironment

@@ -31,5 +31,8 @@ THE SOFTWARE.
<j:when test="${it.getBuildDurationType()==1}">
<th>${%Average Duration}</th>
</j:when>
<j:when test="${it.getBuildDurationType()==2}">
<th title="${%Average duration in minutes (compact)}">⏳'</th>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least in Jenkins version 1.580 there is no support for Unicode/Emojis. So I'd recommend to add the image instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fredg02 I am really curious what makes older Jenkins incompatible with Unicode Emojis? As far as I know is only Unicode.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My assumption was wrong. It does not depend on the Jenkins version. It depends on your browser and font. It doesn't work at all for me in the current form. If I use the corresponding HTML entity in either hex or decimal, I can see at least a black and white(!) hour glass in Chrome, but nothing in Firefox. I don't know if there are other ways to do it, but I'd still recommend to use an image.
Which browser do you use? Is there a special reason why you want to use the unicode character?

@fredg02
Copy link
Member

fredg02 commented May 15, 2017

Thanks for the pull-request! 👍 If you could fix the two minor issues (mentioned above), I will be happy to merge it.

@fredg02 fredg02 merged commit 646053b into jenkinsci:master Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants