This script is evaluated and used to render different HTML elements. The following elements are present as parameters for the Groovy script.
Entry | Value |
---|---|
jenkinsProject | Jenkins job project |
jenkinsBuild | Jenkins build |
/home/kinow/jenkins-workspace/test1/work/jobs/1/workspace/archivedArtifact1.txt | |
... |
When using an image gallery, you must return a list of images. Use the include pattern to filter the archived artifacts and, if necessary, execute extra code in your Groovy script to select which files should be rendered. Below the simplest way to create a gallery with archived images.
return new ArrayList(binding.variables.artifacts.keySet())