Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins embeddable build status icon not shown

I want to use the Embeddable Build Status Plugin for Jenkins. I am using Cloudbees. I granted Job/ViewStatus permissions to the anonymous user. When I add the Markdown to the README.md no icon is shown. I tried both the protected and the unprotected link.

# protected
[![Build Status](https://johnjohndoe.ci.cloudbees.com/job/TypedPreferences/badge/icon)](https://johnjohndoe.ci.cloudbees.com/job/TypedPreferences/)

# unprotected
[![Build Status](https://johnjohndoe.ci.cloudbees.com/buildStatus/icon?job=TypedPreferences)](https://johnjohndoe.ci.cloudbees.com/job/TypedPreferences/)
like image 650
JJD Avatar asked Apr 01 '14 15:04

JJD


People also ask

What is an unstable build in Jenkins?

The Build had some errors but they were not fatal. A Build is unstable if it was built successfully and one or more publishers report it unstable. For example if the JUnit publisher is configured and a test fails then the Build will be marked unstable. ⇐ Troubleshooting Jenkins.


Video Answer


2 Answers

By default DEV@cloud Jenkins instances are not visible, at all, to anonymous users. If you have configured role-based security and want anonymous users to have the selected roles, configure your system and check the box Enable read-only access for anonymous users.

like image 72
Jesse Glick Avatar answered Oct 10 '22 13:10

Jesse Glick


Well, the question has been asked some time ago, but for others reaching it here, having the problem, that the image is still not shown within the Readme.md on GitHub/GitHub-Enterprise after performing the above mentioned configuration:

Make sure that both services are using the same protocol. In my case, we had GitHub-Enterprise running under HTTPS and Jenkins was running on HTTP.
The badge will not be shown in this case because of the possible security breach introduced by mixed content. You will find an appropriate error message in the console output of your browser (i.e. F12 in Chrome):

Mixed Content: The page at 'https://.../README.md' was loaded over HTTPS, 
but requested an insecure image 'http://.../job/master/badge/icon'. 
This request has been blocked; the content must be served over HTTPS.

It's of course quite obvious but something that can also be easily missed when searching on the wrong track.

like image 8
Tobias Breuer Avatar answered Oct 10 '22 12:10

Tobias Breuer