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

[JENKINS-56418] Add custom rflint icon #18

Merged
merged 5 commits into from
Mar 8, 2019
Merged

[JENKINS-56418] Add custom rflint icon #18

merged 5 commits into from
Mar 8, 2019

Conversation

bkhouri
Copy link
Contributor

@bkhouri bkhouri commented Mar 7, 2019

Change Description

When RfLint parser is used, the Jenkins build URL does not display a Robot Framework logo on the Jenkins Build URL page, instead, an "Attention" icon is displayed. This change ensure the Robot Framework logo is used when the respective parser

Testing Done

  1. Spun up a local Jenkins instance
  2. Installed the warning-ng plugin by uploading the HPI file via the Jenkins UI
  3. Create a freestyle project that uses the flint parser
  4. Triggered a build and ensured the UI is displaying the logo correctly

This fixes JENKINS-56418

Before

Before

After

After

Change Description:
When RfLint parser is used, the Jenkins build URL does not display a Robot
Framework logo on the Jenkins Build URL page, instead, an "Attention" icon is
displayed.  This change ensure the Robot Framework logo is used when the
respective parser

Testing Done:
1. Spun up a local Jenkins instance
2. Installed the warning-ng plugin by uploading the HPI file via the Jenkins
   UI
3. Create a freestyle project that uses the flint parser
4. Triggered a build and ensured the UI is displaying the logo correctly
@uhafner
Copy link
Member

uhafner commented Mar 7, 2019

Is it intentional that you have a lot of empty pixels as border around the image? Therefore the image looks smaller than the rest...

@bkhouri
Copy link
Contributor Author

bkhouri commented Mar 7, 2019

The Travis-ci build failed with

The job exceeded the maximum time limit for jobs, and has been terminated.

Any guidance on how to fix them is appreciated.

@bkhouri
Copy link
Contributor Author

bkhouri commented Mar 7, 2019

Regarding the image, I just took the official image from ework/visual-identity/blob/master/README.rst#id3 and resized it

@uhafner
Copy link
Member

uhafner commented Mar 7, 2019

Ok, this is your decision on how the icon looks. I thought it would make more sense without empty pixels around the png.

Can you please also add a short note about the icon license in the Lincense.txt file in the same folder?

Don't worry about the build failure, this happens sometimes...

@bkhouri
Copy link
Contributor Author

bkhouri commented Mar 8, 2019

I'll following up with the Robot framework community regarding the empty pixels around the PNG. I agree it would be better to remove them.


License for RootFramework Icons

https://github.com/robotframework/visual-identity
Copy link
Member

Choose a reason for hiding this comment

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

I think it should be Creative Commons Attribution-ShareAlike 4.0 International License

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it seems to be the case

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My preference is to point to the github repository in the event the robotframework project decides to change the license.

Copy link
Member

Choose a reason for hiding this comment

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

Well actually that is why I want to have the actual license here. Otherwise we may have a conflict if they change the web site later on. This seems pedantic but image licensing is a big deal in the internet.

As a compromise: add both lines, URL and license?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. I updated the license.txt to indicate this.

@uhafner
Copy link
Member

uhafner commented Mar 8, 2019

As far as I understood https://github.com/robotframework/visual-identity the space around the logo is intentional.

@codecov
Copy link

codecov bot commented Mar 8, 2019

Codecov Report

Merging #18 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #18      +/-   ##
============================================
+ Coverage     80.85%   80.85%   +<.01%     
  Complexity     1412     1412              
============================================
  Files           224      224              
  Lines          4742     4743       +1     
  Branches        384      384              
============================================
+ Hits           3834     3835       +1     
  Misses          774      774              
  Partials        134      134
Impacted Files Coverage Δ Complexity Δ
...a/io/jenkins/plugins/analysis/warnings/RfLint.java 100% <100%> (ø) 2 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8d087ce...02ce505. Read the comment docs.

@uhafner uhafner merged commit 083a2c7 into jenkinsci:master Mar 8, 2019
@uhafner
Copy link
Member

uhafner commented Mar 8, 2019

Thanks!

@bkhouri bkhouri deleted the f/master/JENKINS-56418_add_RFLint_Icon branch March 11, 2019 19:50
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