How to tag jobs using Jenkins Job Builder's job configuration

20 views
Skip to first unread message

dc wu

unread,
Jan 11, 2024, 5:14:36 AM1/11/24
to jenkins-j...@googlegroups.com
Hi Everyone,

I want to tag jobs using in Jenkins Job Builder's job configuration,
and the tag can be seen in Jenkins UI similar to "jobtag" plugins.
Any idea of doing it ?

suggestion by POE/chatgpt
e.g.
job:
name: my-job
project-type: freestyle
builders:
- shell: echo "Hello, world!"
publishers:
- jobtag:
tags:
- my-tag

but it doesn't generate the XML code.
does anybody have clue on it ?

Vsevolod Fedorov

unread,
Jan 11, 2024, 5:38:50 AM1/11/24
to dc wu, jenkins-j...@googlegroups.com

Hi,

I don't see any modules implementing 'jobtag' publisher:
https://jenkins-job-builder.readthedocs.io/en/latest/publishers.html

It is just not supported.


Vsevolod.

--
You received this message because you are subscribed to the Google Groups "jenkins-job-builder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins-job-bui...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkins-job-builder/CAKjqnMjsEagKeRXiGDFCuanum5gEAq-vUaQer3SoBhcCv6ZfUg%40mail.gmail.com.

Anil SB

unread,
Jan 11, 2024, 11:08:10 PM1/11/24
to Vsevolod Fedorov, dc wu, jenkins-j...@googlegroups.com
Hi DC Wu:

You could use the job views that would group similar job types (using a regex) on the UI.


- Anil Belur

Tony Chia

unread,
Jan 12, 2024, 12:10:15 PM1/12/24
to Vsevolod Fedorov, dc wu, jenkins-j...@googlegroups.com
Maybe you can get the xml file from the jenkins server and use the raw xml config from jenkins job builder to generate it 

For example


Tony




--
Tony Chia
Sr Build and Release Engineer 

Reply all
Reply to author
Forward
0 new messages