# Code

**URL:** https://community.jenkins.io/c/contributing/code/21.md

[Latest](https://community.jenkins.io/latest.md) · [Categories](https://community.jenkins.io/categories.md) · [Tags](https://community.jenkins.io/tags.md)

---

## [About the Code category](https://community.jenkins.io/t/about-the-code-category/233)

<div class="topic-metadata">

**Author:** [@olblak](https://community.jenkins.io/u/olblak)\
**Replies:** 0

</div>

This category is about discussing everything related to code floating around the Jenkins project

---

## [Modernization of Jenkins vSphere Cloud plugin](https://community.jenkins.io/t/modernization-of-jenkins-vsphere-cloud-plugin/37362)

<div class="topic-metadata">

**Author:** [@jimklimov](https://community.jenkins.io/u/jimklimov)\
**Replies:** 0\
**Last updated:** [October 7, 2026, 6:04pm UTC](https://community.jenkins.io/t/modernization-of-jenkins-vsphere-cloud-plugin/37362 "2026-10-07T18:04:07Z")

</div>

Cheers, just in case someone here (still) uses VMWare as their internal cloud: a few months back I’ve picked up maintenance of vSphere | Jenkins plugin to scratch some itches of my own, and finally got to revising, polis…

---

## [Todos exposed on frontend](https://community.jenkins.io/t/todos-exposed-on-frontend/36837)

<div class="topic-metadata">

**Author:** [@utkarshPatrikar](https://community.jenkins.io/u/utkarshPatrikar)\
**Replies:** 2\
**Last updated:** [April 25, 2026, 9:42am UTC](https://community.jenkins.io/t/todos-exposed-on-frontend/36837 "2026-04-25T09:42:32Z")

</div>

Hi everyone, While reviewing the current frontend docs I noticed that several TODOs comments from the source code are being rendered directly on the live site. Is it the community’s preference to keep these TODOs vi…

---

## [Job-dsl-plugin mvn hpi:run failing to compile project](https://community.jenkins.io/t/job-dsl-plugin-mvn-hpi-run-failing-to-compile-project/36158)

<div class="topic-metadata">

**Author:** [@lkisc](https://community.jenkins.io/u/lkisc)\
**Replies:** 6\
**Last updated:** [February 9, 2026, 12:48am UTC](https://community.jenkins.io/t/job-dsl-plugin-mvn-hpi-run-failing-to-compile-project/36158 "2026-02-09T00:48:16Z")

</div>

I’m setting up my plugin development environment to help contribute to Jenkins plugins and have several plugins cloned locally. The plugins are compiling successfully out of the controller branches, however, I’m having …

---

## [How mock jenkins queue](https://community.jenkins.io/t/how-mock-jenkins-queue/34597)

<div class="topic-metadata">

**Author:** [@panicking](https://community.jenkins.io/u/panicking)\
**Replies:** 0\
**Last updated:** [August 1, 2025, 9:27am UTC](https://community.jenkins.io/t/how-mock-jenkins-queue/34597 "2025-08-01T09:27:53Z")

</div>

Hi all I’m working to gerrit-trigger-plugin on already pull request that does not pass anymore but for now I need to know why this code now generate this error: java.lang.NullPointerException: Cannot invoke “hudson.Ext…

---

## [Help Needed: Best Practices for Writing Unit Tests in Jenkins Plugins?](https://community.jenkins.io/t/help-needed-best-practices-for-writing-unit-tests-in-jenkins-plugins/33170)

<div class="topic-metadata">

**Author:** [@marcelosals](https://community.jenkins.io/u/marcelosals)\
**Replies:** 2\
**Last updated:** [June 24, 2025, 2:11pm UTC](https://community.jenkins.io/t/help-needed-best-practices-for-writing-unit-tests-in-jenkins-plugins/33170 "2025-06-24T14:11:09Z")

</div>

Hi everyone, I am fairly new to contributing to Jenkins plugins and have recently started working on a small enhancement for an existing plugin. While I am comfortable writing the core functionality.., I would really ap…

---

## [Can anyone review my PR for SCM API Plugin?](https://community.jenkins.io/t/can-anyone-review-my-pr-for-scm-api-plugin/31895)

<div class="topic-metadata">

**Author:** [@dodo920306](https://community.jenkins.io/u/dodo920306)\
**Replies:** 0\
**Last updated:** [May 28, 2025, 2:40am UTC](https://community.jenkins.io/t/can-anyone-review-my-pr-for-scm-api-plugin/31895 "2025-05-28T02:40:02Z")

</div>

Hello everyone, I opened a pull request for the SCM API Plugin last week, focusing on fixing some UI display issues in the trait list. PR: Fix help display behaviors in the trait list UI by dodo920306 · Pull Request #3…

---

## [Plugin modernizing checks issue](https://community.jenkins.io/t/plugin-modernizing-checks-issue/30842)

<div class="topic-metadata">

**Author:** [@guymeron](https://community.jenkins.io/u/guymeron)\
**Replies:** 1\
**Last updated:** [May 7, 2025, 12:04pm UTC](https://community.jenkins.io/t/plugin-modernizing-checks-issue/30842 "2025-05-07T12:04:38Z")

</div>

I’ve followed the plugin modernizing guide Improve a Plugin Tutorial The local tests run successfully on both mvn clean verify and mvn hpi:run, but I get the following error from the PR checks Unknown packaging: hpi @ h…

---

## [Performing a Plugin Release manually using http](https://community.jenkins.io/t/performing-a-plugin-release-manually-using-http/27948)

<div class="topic-metadata">

**Author:** [@tyanai](https://community.jenkins.io/u/tyanai)\
**Replies:** 2\
**Last updated:** [March 9, 2025, 8:48am UTC](https://community.jenkins.io/t/performing-a-plugin-release-manually-using-http/27948 "2025-03-09T08:48:57Z")

</div>

Hi, For the last several years, I’m using mvn release:prepare release:perform to release. Now our IT blocked the access using ssh (port 22) and I wanted to check if there’s a way to perform it over http instead. Thank…

---

## [The GitHub Pull Request Builder is a nice plugin](https://community.jenkins.io/t/the-github-pull-request-builder-is-a-nice-plugin/19699)

<div class="topic-metadata">

**Author:** [@sdarwin](https://community.jenkins.io/u/sdarwin)\
**Replies:** 2\
**Last updated:** [October 18, 2024, 11:28am UTC](https://community.jenkins.io/t/the-github-pull-request-builder-is-a-nice-plugin/19699 "2024-10-18T11:28:19Z")

</div>

Hi, I have enjoyed working with the GitHub Pull Request Builder and it’s a critical component of many jobs. It seems the plugin is deprecated since the code hasn’t been maintained and it says “You should probably migra…

---

## [\[Plugin development\] How to add a FolderProperty inside an existing section](https://community.jenkins.io/t/plugin-development-how-to-add-a-folderproperty-inside-an-existing-section/18978)

<div class="topic-metadata">

**Author:** [@c3p0-maif](https://community.jenkins.io/u/c3p0-maif)\
**Replies:** 0\
**Last updated:** [September 2, 2024, 9:59am UTC](https://community.jenkins.io/t/plugin-development-how-to-add-a-folderproperty-inside-an-existing-section/18978 "2024-09-02T09:59:36Z")

</div>

Hi all, I am writing my first Jenkins plugin. This plugin is an extension of an existing plugin (pipeline-groovy-lib) and I want to add a new FolderProperty inside the existing “Pipeline Libraries” section created by t…

---

## [Is the Zero at the end of version number causing this warning?](https://community.jenkins.io/t/is-the-zero-at-the-end-of-version-number-causing-this-warning/15530)

<div class="topic-metadata">

**Author:** [@madukan](https://community.jenkins.io/u/madukan)\
**Replies:** 1\
**Last updated:** [May 28, 2024, 11:13pm UTC](https://community.jenkins.io/t/is-the-zero-at-the-end-of-version-number-causing-this-warning/15530 "2024-05-28T23:13:18Z")

</div>

This setup I am referring to Jenkins runs on Docker. (Perhaps that’s relevant to this warning message I see; nevertheless thought I should mention.) I see the warning, just after installing Jenkins freshly, that says th…

---

## [Failing to find the hpi packaging type](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002)

<div class="topic-metadata">

**Author:** [@joris](https://community.jenkins.io/u/joris)\
**Replies:** 4\
**Last updated:** [January 2, 2024, 3:19pm UTC](https://community.jenkins.io/t/failing-to-find-the-hpi-packaging-type/11002 "2024-01-02T15:19:47Z")

</div>

I am trying to build a Jenkins plugin. What I already did was creating a Maven project from the hello-world-plugin archetype. But when I do mvn verify, it gives me the following error: How can I point it to the hpi…

---

## [Enable Jenkins plugin release to public channel instead of incremental on github commit](https://community.jenkins.io/t/enable-jenkins-plugin-release-to-public-channel-instead-of-incremental-on-github-commit/11208)

<div class="topic-metadata">

**Author:** [@bernardbdas](https://community.jenkins.io/u/bernardbdas)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 5:17pm UTC](https://community.jenkins.io/t/enable-jenkins-plugin-release-to-public-channel-instead-of-incremental-on-github-commit/11208 "2023-12-18T17:17:24Z")

</div>

We had a plugin that was not maintained much for 2 years. Now we would like to make some changes and re-deploy the whole plugin. Doing so I encountered some problems: My changes never got pushed into: Index of publi…

---

## [Trouble building LDAP plugin](https://community.jenkins.io/t/trouble-building-ldap-plugin/8472)

<div class="topic-metadata">

**Author:** [@dbolack](https://community.jenkins.io/u/dbolack)\
**Replies:** 4\
**Last updated:** [July 14, 2023, 7:47pm UTC](https://community.jenkins.io/t/trouble-building-ldap-plugin/8472 "2023-07-14T19:47:17Z")

</div>

Hello! This might not be the best place for this question but seemed like where the experience base would be. :slight\_smile: I’m helping the team that runs our Jenkins instance move to LDAP authentication and we ran in…

---

## [Retain Reports created by extending AbstractTestResultAction on Jenkins restart](https://community.jenkins.io/t/retain-reports-created-by-extending-abstracttestresultaction-on-jenkins-restart/8295)

<div class="topic-metadata">

**Author:** [@kmlkaur73](https://community.jenkins.io/u/kmlkaur73)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 7:48am UTC](https://community.jenkins.io/t/retain-reports-created-by-extending-abstracttestresultaction-on-jenkins-restart/8295 "2023-07-05T07:48:06Z")

</div>

I’m trying to tweak my Plugin Implementation in a way that I can retain the generated report by extending AbstractTestResultAction on Jenkins restart. I override getResult method (where I parse file to get Results that …

---

## [Variable names can't have upper case letter within their second place with databoundsetter annotation?](https://community.jenkins.io/t/variable-names-cant-have-upper-case-letter-within-their-second-place-with-databoundsetter-annotation/8062)

<div class="topic-metadata">

**Author:** [@tyanai](https://community.jenkins.io/u/tyanai)\
**Replies:** 7\
**Last updated:** [June 19, 2023, 10:15am UTC](https://community.jenkins.io/t/variable-names-cant-have-upper-case-letter-within-their-second-place-with-databoundsetter-annotation/8062 "2023-06-19T10:15:25Z")

</div>

Hi, I made some refactoring moving tens of my plugin variables out of the constructor for a databoundsetter annotation. Eventfully I have left with Jenkins keep complaining about 3 of them with the “Missing required pa…

---

## [Why calling pipeline steps from plugin is a bad idea?](https://community.jenkins.io/t/why-calling-pipeline-steps-from-plugin-is-a-bad-idea/8047)

<div class="topic-metadata">

**Author:** [@VladyslavKovalov](https://community.jenkins.io/u/VladyslavKovalov)\
**Replies:** 2\
**Last updated:** [June 19, 2023, 7:47am UTC](https://community.jenkins.io/t/why-calling-pipeline-steps-from-plugin-is-a-bad-idea/8047 "2023-06-19T07:47:46Z")

</div>

Hi, all! I’m writing a plugin which is a pipeline step. I wanted to call other pipeline steps (like sh, archiveArtifacts, etc.) inside my step. Nobody tells me the answer, so I am asking more relevant question. Can anyo…

---

## [Calling sh step from plugin](https://community.jenkins.io/t/calling-sh-step-from-plugin/8007)

<div class="topic-metadata">

**Author:** [@VladyslavKovalov](https://community.jenkins.io/u/VladyslavKovalov)\
**Replies:** 4\
**Last updated:** [June 19, 2023, 7:42am UTC](https://community.jenkins.io/t/calling-sh-step-from-plugin/8007 "2023-06-19T07:42:00Z")

</div>

Hi! I’m writing a pipeline step plugin which should be able to use sh/bat step inside. The question is how to call pipeline step inside plugin? To do so, I’ve found source code of Durable Task Step plugin: GitHub - jenk…

---

## [Missing required parameters in Pipeline](https://community.jenkins.io/t/missing-required-parameters-in-pipeline/8021)

<div class="topic-metadata">

**Author:** [@tyanai](https://community.jenkins.io/u/tyanai)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 9:35am UTC](https://community.jenkins.io/t/missing-required-parameters-in-pipeline/8021 "2023-06-15T09:35:31Z")

</div>

Hi, I have the Plugin below written to have the function signature getting all params as flat. This creates an issue when users are trying to generate the syntax when some attributes are residing within an optional Jel…

---

## [Avoid duplications of sidebar links when running the same plugin twice within a job](https://community.jenkins.io/t/avoid-duplications-of-sidebar-links-when-running-the-same-plugin-twice-within-a-job/7888)

<div class="topic-metadata">

**Author:** [@tyanai](https://community.jenkins.io/u/tyanai)\
**Replies:** 5\
**Last updated:** [June 9, 2023, 1:08pm UTC](https://community.jenkins.io/t/avoid-duplications-of-sidebar-links-when-running-the-same-plugin-twice-within-a-job/7888 "2023-06-09T13:08:45Z")

</div>

Hi, We developed a post plugin years ago that as part of what it’s doing, it also place some sidebar links at the build and job level. GitHub - jenkinsci/vmanager-plugin: A plugin to allow Jenkins Steps with Cadence vM…

---

## [Writing large jenkins plugin for embedded developers](https://community.jenkins.io/t/writing-large-jenkins-plugin-for-embedded-developers/7840)

<div class="topic-metadata">

**Author:** [@VladyslavKovalov](https://community.jenkins.io/u/VladyslavKovalov)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 10:33am UTC](https://community.jenkins.io/t/writing-large-jenkins-plugin-for-embedded-developers/7840 "2023-06-06T10:33:59Z")

</div>

Hi! Our team is planning to develop large Jenkins plugin to help embedded developers with testing of their products. Actual details will be described in spoiler below. Concept detailsOur customer is developing network e…

---

## [Inject environment variable from custom plugin](https://community.jenkins.io/t/inject-environment-variable-from-custom-plugin/7286)

<div class="topic-metadata">

**Author:** [@mohanisch](https://community.jenkins.io/u/mohanisch)\
**Replies:** 1\
**Last updated:** [May 16, 2023, 9:23am UTC](https://community.jenkins.io/t/inject-environment-variable-from-custom-plugin/7286 "2023-05-16T09:23:28Z")

</div>

Hello! We use a self-written plugin to standardize Gradle builds. If necessary, small modifications are made to settings.gradle during runtime. This happens in the SCMListener by extending it. Now we are also looking f…

---

## [Adding Google Authenticator token along with username and password in login](https://community.jenkins.io/t/adding-google-authenticator-token-along-with-username-and-password-in-login/7392)

<div class="topic-metadata">

**Author:** [@sahilorsunny](https://community.jenkins.io/u/sahilorsunny)\
**Replies:** 0\
**Last updated:** [May 15, 2023, 5:15pm UTC](https://community.jenkins.io/t/adding-google-authenticator-token-along-with-username-and-password-in-login/7392 "2023-05-15T17:15:26Z")

</div>

How to integrate google authenticator app as in login page, where along with username and password. we can take an extra input for token and this token will e authenticated by an already available api.

---

## [Jenkins, Java 11, and BouncyCastle](https://community.jenkins.io/t/jenkins-java-11-and-bouncycastle/7124)

<div class="topic-metadata">

**Author:** [@stopp](https://community.jenkins.io/u/stopp)\
**Replies:** 4\
**Last updated:** [May 3, 2023, 4:16pm UTC](https://community.jenkins.io/t/jenkins-java-11-and-bouncycastle/7124 "2023-05-03T16:16:41Z")

</div>

I’m trying to update a plugin and with the update I’ll be setting min Java version to 11. However, in all my tests i’m starting to see this error in the log, which didn’t happen on Java8. Does anyone have any guidance o…

---

## [Incrementals:reincrementalify failed to run](https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388)

<div class="topic-metadata">

**Author:** [@accelq](https://community.jenkins.io/u/accelq)\
**Replies:** 2\
**Last updated:** [March 21, 2023, 3:53pm UTC](https://community.jenkins.io/t/incrementals-reincrementalify-failed-to-run/6388 "2023-03-21T15:53:56Z")

</div>

Where does this key needs to be set? using mvn release:prepare release:perform \[ERROR\] Failed to execute goal io.jenkins.tools.incrementals:incrementals-maven-plugin:1.2:reincrementalify (default-cli) on project accelq-…

---

## [Where to find source for Declarative Pipeline post actions?](https://community.jenkins.io/t/where-to-find-source-for-declarative-pipeline-post-actions/6165)

<div class="topic-metadata">

**Author:** [@viglucci](https://community.jenkins.io/u/viglucci)\
**Replies:** 4\
**Last updated:** [March 16, 2023, 2:17pm UTC](https://community.jenkins.io/t/where-to-find-source-for-declarative-pipeline-post-actions/6165 "2023-03-16T14:17:35Z")

</div>

I want to learn more about how Jenkins internals work, mainly considering the post {} block for Declarative pipelines. Specifically, I want to learn more about how Jenkins determines if the “fixed” post-action should be …

---

## [Jenkins Local setup](https://community.jenkins.io/t/jenkins-local-setup/5968)

<div class="topic-metadata">

**Author:** [@Bandagiswapnil](https://community.jenkins.io/u/Bandagiswapnil)\
**Replies:** 5\
**Last updated:** [March 1, 2023, 2:44pm UTC](https://community.jenkins.io/t/jenkins-local-setup/5968 "2023-03-01T14:44:58Z")

</div>

Hi I am new to Jenkins. I have Clone the code and done env setting as requiered by jenkins contributer page jenkins/CONTRIBUTING.md at af424b5e64e89d9ec741e05363dcf6102adbfd62 · Bandagiswapnil/jenkins · GitHub after e…

---

## [Why does lib-durable-task (USE\_BINARY\_WRAPPER) exist?](https://community.jenkins.io/t/why-does-lib-durable-task-use-binary-wrapper-exist/5902)

<div class="topic-metadata">

**Author:** [@martinda](https://community.jenkins.io/u/martinda)\
**Replies:** 0\
**Last updated:** [February 21, 2023, 8:45pm UTC](https://community.jenkins.io/t/why-does-lib-durable-task-use-binary-wrapper-exist/5902 "2023-02-21T20:45:40Z")

</div>

Why does GitHub - jenkinsci/lib-durable-task: Generates and packages the binaries needed for Durable Task Plugin exist? @carroll ?

---

## [Plugin Development Jetty Configuration](https://community.jenkins.io/t/plugin-development-jetty-configuration/5588)

<div class="topic-metadata">

**Author:** [@c0d3m0nky](https://community.jenkins.io/u/c0d3m0nky)\
**Replies:** 2\
**Last updated:** [February 3, 2023, 6:17pm UTC](https://community.jenkins.io/t/plugin-development-jetty-configuration/5588 "2023-02-03T18:17:10Z")

</div>

I’m trying to troubleshoot an issue with my company’s Jenkins plugin that only happens under specific circumstances requiring me to need to setup my dev environment with an agent running on a separate machine than my dev…

[Next page](https://community.jenkins.io/c/contributing/code/21.md?page=1)
