Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [glassfish-dev] Question about steps to release a new version of a glassfish project

Yes your understanding is correct in changing the version in pom.xml to 1.0.11-SNAPSHOT. You can also update the parent version to 1.0.6.

In the release parameters, the NEXT_VERSION should have -SNAPSHOT suffix
- PROJECT : glassfish-security-plugin
 - RELEASE_VERSION : 1.0.11
 - NEXT_VERSION : 1.0.12-SNAPSHOT
 - BRANCH : master
 - DRY_RUN : false
 - OVERWRITE : false

Thanks
Hussain

-----Original Message-----
From: glassfish-dev-bounces@xxxxxxxxxxx <glassfish-dev-bounces@xxxxxxxxxxx> On Behalf Of sawamura.hiroki@xxxxxxxxxxx
Sent: Thursday, May 21, 2020 10:30 AM
To: 'glassfish-dev@xxxxxxxxxxx' <glassfish-dev@xxxxxxxxxxx>
Subject: [glassfish-dev] Question about steps to release a new version of a glassfish project

Hi,

I'm trying to release a new version of glassfish-security-plugin in relation to eclipse-ee4j/glassfish-security-plugin#9[*].
[*] https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feclipse-ee4j%2Fglassfish-security-plugin%2Fissues%2F9&amp;data=02%7C01%7Chussain.nm%40cognizant.com%7C312dfb8cc71a4110037408d7fd43df61%7Cde08c40719b9427d9fe8edf254300ca7%7C0%7C0%7C637256340276611004&amp;sdata=EPdlEUgEMB06N%2BCHhnvNY%2B8Xo27DpX28e1lKFSrdiH8%3D&amp;reserved=0

This is my first time, so let me review the steps to create a release.

First, I researched how other projects are releasing, and I found the following Jenkins job:
https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fci.eclipse.org%2Fglassfish%2Fview%2Fall%2Fjob%2Fall-projects_1_build-and-stage%2F&amp;data=02%7C01%7Chussain.nm%40cognizant.com%7C312dfb8cc71a4110037408d7fd43df61%7Cde08c40719b9427d9fe8edf254300ca7%7C0%7C0%7C637256340276621001&amp;sdata=VvgUO6gVRPiUCidI0zJvuluqrpCetQyGimkN5J%2BxgA4%3D&amp;reserved=0

My understanding is that if I set the appropriate parameters for this job and run it, the release process for the specified project will work automatically.
In this case,
 - PROJECT : glassfish-security-plugin
 - RELEASE_VERSION : 1.0.11
 - NEXT_VERSION : 1.0.12
 - BRANCH : master
 - DRY_RUN : false
 - OVERWRITE : false

I checked the pipeline configuration to be sure, the command of the version rewrite was as follows.
```
SNAPSHOT_VERSION=`mvn ${MVN_EXTRA} -B -C -U -Pstaging  ${HELP_PLUGIN}:evaluate \
                                -Dexpression=project.version 2> /dev/null | \
                egrep '^[0-9]+\.[0-9]+(\.[0-9]+)?-SNAPSHOT$'`
(==snip==)
find . -name pom.xml -exec sed -i "s|<version>${SNAPSHOT_VERSION}</version>|<version>${RELEASE_VERSION}</version>|g" {} \; ```

For glassfish-security-plugin, 1.0.10 is already tagged, but the current project version is 1.0.10-SNAPSHOT.
So, the command that is actually executed is:
```
find . -name pom.xml -exec sed -i "s|<version>1.0.10-SNAPSHOT</version>|<version>1.0.11</version>|g" {} \; ``` Therefore, I'll probably need to manually change the project version to 1.0.11-SNAPSHOT step before jenkins job.

Has my understanding of that been correct so far?

- Hiroki

_______________________________________________
glassfish-dev mailing list
glassfish-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fglassfish-dev&amp;data=02%7C01%7Chussain.nm%40cognizant.com%7C312dfb8cc71a4110037408d7fd43df61%7Cde08c40719b9427d9fe8edf254300ca7%7C0%7C0%7C637256340276621001&amp;sdata=nIBW94VYeXTd4863c3MvRZdZFulTyX3jsVoaYBGsOzM%3D&amp;reserved=0
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.

Back to the top