jenkinsci / jenkinsci/release-plugin

[JENKINS-41620] Release plugin not passing parameters to ant.bat file

Open
#132 0 comments 0 reactions 0 assignees View on GitHub
component:release-plugin imported-jira-issue priority:critical resolution:unresolved
Dominant language
Java
Stars
24
Forks
46
PR merge metrics
No merged PRs in 30d

Description

Hi.

Ive created a new Jenkins Build and am now trying to automate the release of a project with the release plugin. I have set up previous jenkins build before with no problem, but using an ant.bat file this time. On trying to release I've noticed that -D options arent passed in even though they are configured properly (i think)

When running the command on the command line and passing in the -D options i need it works perfect, however i need this to be done automatically. Am i missing something?

Thanks,

Ciaran

---
Originally reported by cduncan, imported from: Release plugin not passing parameters to ant.bat file


  • assignee: petehayes
  • status: Open
  • priority: Critical
  • component(s): release-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251223-222157

Raw content of original issue

Hi.

Ive created a new Jenkins Build and am now trying to automate the release of a project with the release plugin. I have set up previous jenkins build before with no problem, but using an ant.bat file this time. On trying to release I've noticed that -D options arent passed in even though they are configured properly (i think)

When running the command on the command line and passing in the -D options i need it works perfect, however i need this to be done automatically. Am i missing something?

Thanks,
Ciaran

Contributor guide

Open the contributing guide

Research direction

Start in the release-plugin entry point that invokes ant.bat and reproduce a release using configured -D options. Trace how those parameters are collected and passed to the Windows Ant command; done means the configured options reach ant.bat as they do when the command is run manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, release
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.