2

I need to get the results of my jenkins builds on my website. I already set up jenkins that when someone pushes on my repository the project will be build. Now I need the information if the build failed on my homepage, to enable/disable the download button. Theres the next question is it possible to get the latest build through jenkins?

I already found HTML Publisher Plugin but I dont think that this would solve my problem?

Best regards John

Johannes Gnadlinger
  • 1,339
  • 1
  • 12
  • 32
  • 1
    Surely, if something doesn't build, you won't let people download it. Why can't they just download the old build if Jenkins fails? – cjds Jan 27 '17 at 21:57
  • yeah thats a good idea but i dont know how to put my project on my website to download. I thought jenkins could help me with this problem. – Johannes Gnadlinger Jan 28 '17 at 09:26

1 Answers1

1

The way this is traditionally done is with a build passing or failing icon, that lets users know that a build failed

build passing

https://wiki.jenkins-ci.org/display/JENKINS/Embeddable+Build+Status+Plugin

cjds
  • 8,268
  • 10
  • 49
  • 84
  • Thank you thats a great solution, is there a way that jenkins host my project that people can download it from my site? – Johannes Gnadlinger Jan 28 '17 at 09:30
  • There are a lot of different ways to do that. It really depends on the project though. It's often done by linking to the artifacts Jenkins build creates on its' server. http://stackoverflow.com/questions/5821545/archive-the-artifacts-in-hudson-jenkins. Sometimes it's also done by a post script in jenkins that moves the build (if successful) to a download folder – cjds Jan 29 '17 at 22:01