Image Tag Parameter1.2Minimum Jenkins requirement: 2.164.1ID: image-tag-parameter

Installs: 31
Last released:a month ago
Maintainers
Stéphane Nsakala

Logo

Changelog

Introduction

This plungins allows you to define (container) image tags as parameter in you builds.
It use the Docker Registry HTTP API V2 to list tags availaible for an image.

Screenshots

Paremeter Type Selection

Configuration

Image Selection

how to build the Jenkins Plugin

Install skdman

sudo apt install zip
curl -s "https://get.sdkman.io" | bash
source .sdkman/bin/sdkman-init.sh 

install JDK and Maven

sdk install java 8.0.232-open
javac -version
sdk install maven
mvn -version

install fontconfig on ubuntu

sudo apt install -y fontconfig

Error without fontconfig

Caused by: java.lang.NullPointerException
        at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1264)
        at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:219)

test, build and package

mvn verify
mvn hpi:run
mvn package

Plugin ./target/Image_Tag_Parameter.hpi can be installed on any jenkins instance

access the dev environment

Point the url to http://localhost:8080/jenkins

Publish to Jenkins plugin repo

see https://wiki.jenkins.io/display/JENKINS/Hosting+Plugins#HostingPlugins-Releasingtojenkins-ci.org (.m2/settings.xml and ssh keys)

mvn release:prepare release:perform
ArchivesGet past versions
Links
Labels