jenkinsci / jenkinsfile-runner

A command line tool to run Jenkinsfile as a function
MIT License
1.13k stars 292 forks source link

[JENKINS-56270] - Static HTML build result #67

Open fwilhe opened 5 years ago

fwilhe commented 5 years ago

Hi everyone,

I love the Jenkinsfile runner, it is great to run Jenkins pipelines in environments like travis for example. I documented what I did there in a blog post.

Still, this approach has one large disadvantage: You lose the whole UI, which is of course helpful dig into build failures or see how your test coverage is doing.

My question: Is there anything that can generate a static HTML page which gives me the value that the Jenkins build overview page has? I understand that this is not static HTML in Jenkins, but I think in combination with Jenkinsfile runner and GitHub Pages, this could be very powerful.

Any hints on existing tools/plugins are highly appreciated.

Thanks for the great work in this plugin and Jenkins in general.

oleg-nenashev commented 5 years ago

I think it is a valid feature which could be implemented in Jenkins.

Probably you could just invoke wget against the running instance in the current Jenkinsfile Runner version. Jetty is still running inside behind the scenes, and it is accessible from inside the instance. It may change in future versions.

fwilhe commented 5 years ago

I've tried the wget/curl approach, but no other port then jnlp was reachable. I think this is a serviceable approach. In the long run, it would be great if this was a feature of Jenkins, not just a scrape of the page, but a more fully fledged static site (with some Javascript, but no server side interpreted languages).

oleg-nenashev commented 5 years ago

Created https://issues.jenkins-ci.org/browse/JENKINS-56270 to track it in Jenkins JIRA.

~UPD: This issue is a primary location again~