Image Scanning with Jib - docker

I want to scan an image(which is built using jib) before pushing it to Artifactory. I am using github actions to perform this task. Could someone help me to achieve it?

Related

Report on build metrics

I need to report on build metrics. There is a plugin that offers this information called build-metrics but it does not work with blue ocean.
Has anybody found a way to accomplish this?
I've tried using the Jenkins CLI (version 2.361.2) to get this information. There are a lot of features built into the CLI but I can't figure out how to get the status of all builds that were run over a weekly time frame.

Artifactory REST API call to retrieve the latest artifact version for multiple artifacts

This blog describes how to fetch latest version for an artifact by repo layout and name. Is there any AQL/REST API call to achive the same for multiple artifacts at once.
My use case is get latest version for a list of artifacts. It can be achieved using sending multiple calls. Looking for efficient way to do this.
Thanks.
There is no Artifactory REST API which supports getting the latest version for multiple artifacts.
AQL does not have a built in support for getting the latest version. You can try to achieve it by sorting the results, as described here, and do some post processing of the results to pick the latest version.
I think the best option would be performin multiple API calls.

Change the release process from SNAPSHOT to build number

Currently we are using axion-release-plugin to control our release process. Now we would like to drop the SNAPSHOT and introduce the build number in our release process. So that we can achieve CI.
Basically currently we are using version 1.0.0-SNAPSHOT and now we need something like 1.0.0-BUILDNUMBER or 1.0.BUILDNUMBER from Jenkins.
Please provide any solution or plugin we can use with gradle.
I'm actually quite happy with nebula-release-plugin developed by NetFlix. It can generate a unique version number based on branches and tags in your git repo.
By default it counts with using git flow, but you can reconfigure the behaviour. Take a look :)

Publish jenkins build results on website

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
The way this is traditionally done is with a build passing or failing icon, that lets users know that a build failed
https://wiki.jenkins-ci.org/display/JENKINS/Embeddable+Build+Status+Plugin

Can jenkins the build-flow plugin trigger manual jobs?

I am currently trying to create a build pipeline. The buildflow plugin looks interesting, but I cannot find any information on whether manual steps are possible.
Does anyone know if this is possible?
Does not seem this is possible yet, but you can look at the build pipeline plugin which supports manual steps. This is an alternative plugin for implementing build pipelines that also includes nice visualizations.

Resources