Are Git tag names of CD releases customizable?

29 views
Skip to first unread message

Ullrich Hafner

unread,
Aug 11, 2025, 8:23:00 AMAug 11
to Jenkins Developers
After switching to CD for my plugins I noticed that the tags in Git use a different format now. Is there a way to customize this format?

E.g. before I had vX.Y.Z. Now I get X.Y.Z. Is there a way to add the missing prefix `v`? Otherwise sorting of existing and new tags becomes cumbersome.

Michael Nazzareno Trimarchi

unread,
Aug 11, 2025, 8:29:16 AMAug 11
to jenkin...@googlegroups.com
Hi

cat .mvn/maven.config

.mvn/maven.config:-Dchangelist.format=%d.v%s

Not sure but maybe:

.mvn/maven.config:-Dchangelist.format=v%d.v%s

Michael



On Mon, Aug 11, 2025 at 2:22 PM Ullrich Hafner <ullrich...@gmail.com> wrote:
After switching to CD for my plugins I noticed that the tags in Git use a different format now. Is there a way to customize this format?

E.g. before I had vX.Y.Z. Now I get X.Y.Z. Is there a way to add the missing prefix `v`? Otherwise sorting of existing and new tags becomes cumbersome.

--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/jenkinsci-dev/4E2777D1-DCC0-4FCE-BC54-BB462254F4A1%40gmail.com.


--
Michael Nazzareno Trimarchi
Co-Founder & Chief Executive Officer
M. +39 347 913 2170
mic...@amarulasolutions.com
__________________________________

Amarula Solutions BV
Joop Geesinkweg 125, 1114 AB, Amsterdam, NL
T. +31 (0)85 111 9172
in...@amarulasolutions.com
www.amarulasolutions.com

Ullrich Hafner

unread,
Aug 11, 2025, 3:49:24 PMAug 11
to Jenkins Developers
Thanks! I tried it, but unfortunately it does not work. This produces tags of the format 

X.Y.Z-v[commits].v[hash]

It seems that the prefix is hard-coded right now:

++ mvn -B -ntp -Dset.changelist -Dexpression=project.version -q -DforceStdout help:evaluate
+ version=3.7.1-v587.vf524b_8edb_a_e2
+ gh api -F tag=3.7.1-v587.vf524b_8edb_a_e2 -F message=3.7.1-v587.vf524b_8edb_a_e2 -F object=f524b8edbae2d91f396f7201d01e254170475f4b -F type=commit /repos/jenkinsci/jquery3-api-plugin/git/tags
+ gh api -F ref=refs/tags/3.7.1-v587.vf524b_8edb_a_e2 -F sha=f524b8edbae2d91f396f7201d01e254170475f4b /repos/jenkinsci/jquery3-api-plugin/git/refs
++ gh api /repos/jenkinsci/jquery3-api-plugin/releases



Jesse Glick

unread,
Aug 11, 2025, 5:44:55 PMAug 11
to jenkin...@googlegroups.com
On Mon, Aug 11, 2025 at 8:23 AM Ullrich Hafner <ullrich...@gmail.com> wrote:
before I had vX.Y.Z. Now I get X.Y.Z. Is there a way to add the missing prefix `v`?

Sorry, no. The tag is identical to the plugin version number. 
Reply all
Reply to author
Forward
0 new messages