Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tagNameFormat to include correct tag in released pom file #943

Merged

Conversation

MarkEWaite
Copy link
Contributor

Use tagNameFormat to include correct tag in released pom file

The 933.0.1 pom file stored in the Jenkins artifact repository includes an invalid scm.tag value because the tagNameFormat property was removed on the 933.x branch.

Apache Maven release plugin documentation says the default tagNameFormat is '@{project.artifactId}-@{project.version}'. That matches with the value that is in the pom file, 'cloudbees-bitbucket-branch-source-933.0.1'. It does not match the value written to the git repository.

The 933.0.1 release cannot be included in the Jenkins plugin BOM because of that invalid scm.tag. A 933.0.2 release is needed after this change is merged so that the released pom file includes the tag value that matches the tag written to the repository by the Apache Maven release plugin.

Refer to the failing plugin BOM pull request:

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

The 933.0.1 pom file stored in the Jenkins artifact repository includes
an invalid scm.tag value because the tagNameFormat property was removed
on the 933.x branch.

https://maven.apache.org/maven-release/maven-release-plugin/prepare-mojo.html#tagNameFormat
Docs say the default tagNameFormat is '@{project.artifactId}-@{project.version}'.
That matches with the value that is in the pom file,
'cloudbees-bitbucket-branch-source-933.0.1'.

Download the release 933.0.1 pom file from
https://repo.jenkins-ci.org/artifactory/releases/org/jenkins-ci/plugins/cloudbees-bitbucket-branch-source/933.0.1/cloudbees-bitbucket-branch-source-933.0.1.pom

The 933.0.1 release cannot be included in the Jenkins plugin BOM because
of that invalid scm.tag.  A 933.0.2 release is needed after this change
is merged so that the released pom file includes the tag value that
matches the tag written to the repository by the Apache Maven release plugin.
@nfalco79
Copy link
Member

release 933.0.2 on going

@nfalco79 nfalco79 added the chore label Dec 13, 2024
@MarkEWaite MarkEWaite deleted the use-correct-tagNameFormat-for-933.x branch December 24, 2024 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants