How to add jenkins build result to project page - jenkins

I am using Image Gallery Plugin, here it displays the gallery in build page. But i want to add latest result(Gallery) to project home page, How can i do this?
I tried "getProjectAction" but this executes only when we do the configuration. I looked into "perform" method which is already exist in this plugin source, It has build.action to post the result. How the build.action works? Is it particularly adding action to only build or Can we even add it to project home?
Please help...

Related

How do you display a clickable repo link in the Jenkins output?

In my Jenkins Console logs it says:
Obtained jenkins/some.jenkinsfile from git ssh://mygitserver.myorg.com/my/git/repo.git
so I have to copy / paste / edit to get that repo then click about to the Jenkinsfile in your browser.
When you're doing this multiple times every day it becomes a major headache.
Is there anyway to get a simple clickable link?
I would suggest crafting an output that would then become clickable. i.e. declare the link then specify the file using a variable.
script { println("https://yourRepoUrl.com/jenkins/${downloadFile}) }
Alternatively, you could download the file from within the pipeline. See here for details

How to access source code from within Docker build?

I'm trying to build a Github Action that's going to take a screenshot of the Github Pages website (built with Jekyll) and allow the user to upload it as an artifact. For my convienience and since installing Pyppeteer is non-trivial, I wrapped the thing around in Docker. Here's the source code for the action at the time of writing the question:
https://github.com/hakierspejs/jekyll-screenshot-github-action/tree/8569f1370c5decf5ecfb4bc17a977cad5aa3d2aa
The problem is in accessing the source code of the Github Pages website. I noticed that Github Actions is mapping a couple of directories as a volume, but neither /github/workflow nor /github/workspace seems to contain the source code. Is there a path I could mount to somehow access it?
/github/workflow is the right path, but I was missing a actions/checkout#master step. Adding this line to the list of steps made it work:
- uses: actions/checkout#master

Can we have any plugin by which we can add re-run button on jenkins console

I am looking for some kind of plugin or some kind of workaround by which i can have a button to rerun a build with same parameters on console page . so we can directly click and a new build will run without passing new params.
I tried some searches but not able to find this kind of plugin.
This is what i found which is helping me.
https://wiki.jenkins.io/display/JENKINS/Rebuild+Plugin

Associate an external application url to jenkins build

I am trying to link or associate an external application url to jenkins job build.
So for every builds, this link or url should be available at the left side and any user can simply click on it to launch the external application.
So far I explored the following plugins for this:
https://wiki.jenkins.io/display/JENKINS/Associated+Files+Plugin - this associates a file or directory to the build , something similar to the html publisher plugin... not a url
https://wiki.jenkins.io/display/JENKINS/DocLinks+Plugin - similar to above , associate a doc from the build artifact directories
https://wiki.jenkins.io/pages/viewpage.action?pageId=52298023 - this Side bar link plugin can associate a external link to the jenkin project, but not to every builds
for me the external link which I am trying to associate to the build , dynamically changes for each build , basically some of the query parameter in the external link, so it's critical to associate it to every builds for tracking and other purposes . ex: the external link will be a like a small web app
http:hostnamexxx:port/somepage?para1=xxx&para2=yyyy
Please let me know if there is any plugin for this specific purpose or any other ideas
This would be the Anchor Chain plugin. I've played around with it a bit:
The docs state that the icon can be omitted. Then however you need to insert a tab character after the URL.
When inserting a link to an icon, it is always relative to Jenkins base URL.

Teamcity custom reports tab

I am trying to create a custom tab in my Build reports. I followed this link given under teamcity manual. But the tab simply does not appear for me. What am I doing wrong?
I see an entry being created in the config/main-config.xml like this. But still this does not help me showing the specific tab.
<report-tab title="Koverage" basePath="/usr/braga/helloworld" startPage="braga.html" />
By the way, I am trying to integrate the .html generated for rcov code coverage gme within my Rails project.
I finally found out what I was doing wrong. Actually, I have to first create artifacts and have them saved in the artifact directory. Then, I will have to include those artifacts in the build I choose. The base path has be "." (meaning current directory) and the filename can be index.html. Here is a screenshot after I configured it.

Resources