jenkinsci / jenkinsci/release-plugin

[JENKINS-47411] Release options ignored later on the build

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

Description

Using the following goals and options:

release:prepare release:perform -Dmaven.deploy.skip=true

Still have the build attempt a deployment.

See important parts of the output:

Executing Maven: -B -f D:\.jenkins\workspace\RF20000 Werewolf Manager\pom.xml -DdevelopmentVersion=1.2-SNAPSHOT -DreleaseVersion=1.1 -Dusername=ortizj release:prepare release:perform -Dmaven.deploy.skip=true -Dpassword=*********

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project RF20000-Manager-parent: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]

It is not configured on purpose but seems the options are not propagated thru all the process.

---
Originally reported by javydreamercsw, imported from: Release options ignored later on the build


  • status: Open
  • priority: Minor
  • component(s): release-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251223-222157

Raw content of original issue

Using the following goals and options:

release:prepare release:perform -Dmaven.deploy.skip=true

Still have the build attempt a deployment.

See important parts of the output:
Executing Maven: -B -f D:\.jenkins\workspace\RF20000 Werewolf Manager\pom.xml -DdevelopmentVersion=1.2-SNAPSHOT -DreleaseVersion=1.1 -Dusername=ortizj release:prepare release:perform -Dmaven.deploy.skip=true -Dpassword=*********

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project RF20000-Manager-parent: Deployment failed: repository element was not specified in the POM inside distributionManagement element or in -DaltDeploymentRepository=id::layout::url parameter -> [Help 1]

It is not configured on purpose but seems the options are not propagated thru all the process.

  • environment: Windows 7 Server

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.