# From where can I get the value for \`name\` parameter for \`community.general.jenkins\_plugin\` module?

**URL:** <https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900>\
**Category:** Get Help\
**Tags:** jenkins, module\
**Created:** [June 9, 2026, 1:59pm UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900 "2026-06-09T13:59:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 9, 2026, 1:59pm UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/1 "2026-06-09T13:59:04Z")

</div>

The [documentation](https://docs.ansible.com/projects/ansible/latest/collections/community/general/jenkins_plugin_module.html#ansible-collections-community-general-jenkins-plugin-module) for the `community.general.jenkins_plugin` module describes the “`name`” parameter as simply “Plugin name”.  
 ![Parameter "name"](https://us1.discourse-cdn.com/ansible/original/2X/e/e7262bc338ffaf64f488f82dec71e81fd1cbd2f0.png)

The examples in the documentation show the values to be _lowercase_ and _hyphenated_.

 ![image](https://us1.discourse-cdn.com/ansible/original/2X/b/b6114b5494486c1af77a4b54ca6afe563adbbeec.png)

I’m assuming that simply writing the name of the plugin as a string (e.g.: `"Role-based Authorization Strategy"`), as seen in _Jenkins Plugin Index_, isn’t going to work. Where exactly can I get those valid names of the plugins as shown in the examples?

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 9, 2026, 8:07pm UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/2 "2026-06-09T20:07:09Z")

</div>

Try this:

```sh
$ curl -L https://updates.jenkins.io/current/plugin-versions.json \
  | jq '.plugins | keys'

```

[Edit: I’m guessing the one for “`Role-based Authorization Strategy`” is “`role-strategy`”.]

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 10, 2026, 6:42am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/3 "2026-06-10T06:42:02Z")

</div>

That command seems to give a list of unique plugin names that look similar to what the Ansible module wants. But how do I know which name belongs to which plugin? I have no idea which of those is for the “Role-based Authorization Strategy” plugin.

How is a new Ansible user supposed to reliably find the correct plugin name for the module’s syntax? That’s the question I got when reading the doc.

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 10, 2026, 10:29am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/4 "2026-06-10T10:29:01Z")

</div>

When I hover over the [Role-based Authorization Strategy](https://plugins.jenkins.io/role-strategy) (or any other) plugin link in my Jenkins  
[https://jenkins.example.com/manage/pluginManager/installed](https://jenkins.example.com/manage/pluginManager/installed) or  
[https://jenkins.example.com/manage/pluginManager/available](https://jenkins.example.com/manage/pluginManager/available) pages, my browser shows the down-cased short name as the link target.

Like you, I was surprised the ~~“presentation name” so to speak~~ _title_ wasn’t in the json. 🤷

Edit: The relationship between the _title_ and the short name is contained in the slightly invalid json page  
[https://updates.jenkins.io/update-center.json](https://updates.jenkins.io/update-center.json).

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 10, 2026, 11:20am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/5 "2026-06-10T11:20:06Z")

</div>

Yes, I’ve seen that, Jenkins refers to it as “plugin ID”. However, this means that I, or a new user, will have to access an existing Jenkins server to find plugin ID. I was expecting to write a playbook to automate configuring Jenkins, before I even login to the server for the first time.

My problem is that Ansible docs don’t specify exactly where I can get this plugin ID, and it also doesn’t help that the parameter is called “`name`”. I just need to know what is the method recommended by Ansible or the module’s creators to get that unique name or ID.

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 10, 2026, 12:20pm UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/6 "2026-06-10T12:20:59Z")

</div>

It’s in [https://updates.jenkins.io/update-center.json](https://updates.jenkins.io/update-center.json), you just have to dig it out.  
The shell pipeline below will give you a list of (name,title) pairs. The valid json data comes after the first line and before the last line of the `curl` output, so you have to play funny `head`/`tail` (or `sed`) games to throw away the non-json parts. The final `jq` expression creates a list of dicts from fields extracted from the `plugins` list in that json.

```sh
$ curl -s -L https://updates.jenkins.io/update-center.json \
  | head -n -1 \
  | tail -n 1 \
  | jq '[.plugins[] | {name: .name, title: .title}]'

```

The output looks like this:

```json
[
  {
    "name": "42crunch-security-audit",
    "title": "42Crunch REST API Static Security Testing"
  },
  {
    "name": "AnchorChain",
    "title": "AnchorChain"
  },
  {
    "name": "ApicaLoadtest",
    "title": "Apica Loadtest"
  },
  {
    "name": "BlameSubversion",
    "title": "Blame Subversion"
  },
…
  {
    "name": "role-strategy",
    "title": "Role-based Authorization Strategy"
  },
…
  {
    "name": "zulip",
    "title": "Zulip"
  }
]

```

This isn’t documented in the _jenkins\_plugin_ docs.  
(There are currently 2081 plugins in that data!)

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 10, 2026, 1:54pm UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/7 "2026-06-10T13:54:15Z")

</div>

I’m not saying that Ansible should document all the Jenkins plugins, that’s Jenkins’ job. I’m saying that the Ansible docs should mention at least something about where to get those unique names/IDs.

How will someone, who’s never used this Ansible module, know that they have to parse and filter through Jenkins’ update repository for this?

I, myself, couldn’t find the source of these names/IDs in the docs, so I’m asking here. It’s like asking for the available data-types of a programming language because the docs didn’t mention those.

Also, if the JSON file is the intended method, it means that writing the playbook requires a tool to read the JSON, which must be mentioned in the docs. Not to mention, the method seems crude and inelegant.

---

<div class="post-metadata">

**Author:** ![utoddl](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/utoddl/32/249_2.png) [@utoddl](https://forum.ansible.com/u/utoddl)\
**Post date:** [June 10, 2026, 3:23pm UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/8 "2026-06-10T15:23:23Z")

</div>

> [@tukykarmakar](#):
>
> I’m saying that the Ansible docs should mention at least something about where to get those unique names/IDs.

The latest version of the doc only says

> …should be in the same format as the one provided by Jenkins update center ([https://updates.jenkins.io/current/plugin-versions.json](https://updates.jenkins.io/current/plugin-versions.json))

and doesn’t make it clear where these strings come from, as you say.

> [@](#):
>
> How will someone, who’s never used this Ansible module, know that they have to parse and filter through Jenkins’ update repository for this?
> 
> I, myself, couldn’t find the source of these names/IDs in the docs, so I’m asking here.

I think you just answered your own question! And, yeah, it’s not a great look.

It is a **community.general** module. Until some community member who is annoyed enough by the situation submits changes via a pull request, it isn’t likely to improve. Not to put work on your plate, but I don’t know any more likely candidates. 🙂

> [@](#):
>
> the method seems crude and inelegant

Agreed. [_sigh_] Having a url which promises `update-center.json` but delivers invalid json introduces some crudeness, and it requires even more crudeness to restore usefulness. Even then, how is a user supposed to crawl through 2000+ plugins and have a clue which ones are actually needed? Good luck putting an interface on that.

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 11, 2026, 3:44am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/9 "2026-06-11T03:44:04Z")

</div>

Your quote from the doc is from a point specifying how a _custom update link_ should be configured. It doesn’t explicitly state where to get the unique plugin names.

I actually found that the unique name/ID are mentioned in the respective plugin’s page and URL.

 ![jenkins_plugin_page](https://us1.discourse-cdn.com/ansible/original/2X/8/82c5c01a1253b91806fba3c8921347dddf785cfd.png)

While I’m more confused than annoyed, you’re correct about submitting a PR for this community plugin. Since I’m new to Jenkins, I need to confirm with them if the ID on the page is consistently the same as the ones in the JSON or URL. If I get a confirmation, I will use that to raise a PR.

Thanks for all the information you provided!

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 12, 2026, 4:08am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/10 "2026-06-12T04:08:13Z")

</div>

[I asked in the Jenkins Community forum](https://community.jenkins.io/t/are-the-ids-listed-in-plugin-index-page-update-center-json-and-plugin-versions-json-same-or-identical/) if the unique IDs in the `update-center.json` and `plugin-versions.json` are identical to their respective URL slugs and plugin ID mentioned in the plugin index.

I got the following answers:

- The same ID is used to uniquely identify a plugin across Jenkins core, update-center, and the Jenkins Plugin Index.

> **Quote from [Style Guide for Publishing Plugins](https://www.jenkins.io/doc/developer/publishing/style-guides/#artifact-id)**  
> _A plugin’s artifact ID is used as the file base name and to uniquely identify the plugin in Jenkins and on update sites._

- The unique ID is referred to as “`artifact-id`” in the source code and it’s also used to generate the URL of the plugin’s page.

> **Jenkins Update Center [source code](https://github.com/jenkins-infra/update-center2/blob/cde4c7f368132c10ca5dd5ddf94ae65181ca3a2e/src/main/java/io/jenkins/update_center/PluginUpdateCenterEntry.java#L95)**

I will use these references to raise an Issue and see where it goes.

---

<div class="post-metadata">

**Author:** ![gundalow](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/gundalow/32/99_2.png) [@gundalow](https://forum.ansible.com/u/gundalow)\
**Post date:** [June 12, 2026, 5:21am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/11 "2026-06-12T05:21:48Z")

</div>

@tukykarmakar once you work this out, perhaps you could raise a PR to improve the documentation.

> <https://github.com/ansible-collections/community.general/blob/main/plugins/modules/jenkins_plugin.py>

@utoddl thanks for all the guidance

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 12, 2026, 5:32am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/12 "2026-06-12T05:32:38Z")

</div>

I have raised an issue for now. I will proceed based on the discussion there.

---

<div class="post-metadata">

**Author:** ![tukykarmakar](https://avatars.discourse-cdn.com/v4/letter/t/3ec8ea/32.png) [@tukykarmakar](https://forum.ansible.com/u/tukykarmakar)\
**Post date:** [June 26, 2026, 2:54am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/13 "2026-06-26T02:54:08Z")

</div>

PR [#12290](https://github.com/ansible-collections/community.general/pull/12290) has been merged for clarifying where to get the unique plugin IDs. It should be visible in the public docs within few weeks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [July 26, 2026, 2:54am UTC](https://forum.ansible.com/t/from-where-can-i-get-the-value-for-name-parameter-for-community-general-jenkins-plugin-module/45900/14 "2026-07-26T02:54:10Z")

</div>

Closed on July 26, 2026, 2:54am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
