Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[glassfish-dev] Question about steps to release a new version of a glassfish project
  • From: "sawamura.hiroki@xxxxxxxxxxx" <sawamura.hiroki@xxxxxxxxxxx>
  • Date: Thu, 21 May 2020 04:59:38 +0000
  • Accept-language: ja-JP, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=fujitsu.com; dmarc=pass action=none header.from=fujitsu.com; dkim=pass header.d=fujitsu.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3FyI7Kb1ncsSw6vsnHi045qMWpjv9RSYzp8wp6x9jiM=; b=W8NDHqSsXSA+ItIef2F+L5SsnsLOxlBHr1/UgOTEKSvzDy9/G3AQdxwYE38uPfcmUU6KnLnm7SyxLderlk8QIHjKILAihnfGsxelbbCiXNlYcFDzezrsoVf2wRvJh2gUAq3MIDsU+v5vdTU1bx/5SqZU8yj84sILC01JviUQa62spJola5lYm3rcE5eg2HXtSSg0BTMTheCOBNBCekUmdA/3TqPoa3YXAjAeUVFXx7Ly+Zk0dzMWMRUIuSZc488Acw5d1UnPhIbUuoUFyB5E09xmIMcxsCr8C3HJITFiKxnVHpHwLvDLkNyuZCZ63mv55qzaj+J0D05ZBidf3BInZQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DKHKazPLpWh89EIrPEEeY7+SPIaK/+/zSyR3JeTpidLAYcuIkGKwuWOQBkWDUXZQQpciHYce8YhmaQQjbWPAb130yMPJHKR9KwRhRrA+pfMJPo9/wfsjscIKPUsYFmtkR/xqXOcUsrPvjgfbHUfwJY9Yb4FoihJPPd6g3bQhAxj95mUGES5POpXCjhgLGqGcoO8AQAlTUo8E/P0LQKNaGIPWZLvwM2pyOA0m44Y2a8n3fuFUeq1CYz2Qiys4OmuUfrMYtVWmt6hrKkWnYBEBHmGaXv3KqGYPI0hCMpH9/iYu52DWBy2RfKnmtsAUhlEQc+8oT088LfIxqfMpBiHlMA==
  • Delivered-to: glassfish-dev@xxxxxxxxxxx
  • Ironport-sdr: pukHxWM+Bo5fhfsB32RFyNQbCBr3+SRUQ4QVt3ssOIKhGB4s00U/cn1HlH7uM6JR9ENG3dDdzO aVD9d3SDGV9g9/ZeKBZNrShuV8PyS6CrI6Ooqil2EEsByu6aadUbG9IZvo+EvqXK4o+vg0RbsU QsUDTsoHvwgXkSeEuS5wytkGjP873SFAdyQDnbQ/RkvnN6VMZCtylAtADMZ6njw9zDAFLhTPbG BjNdsutCjQwW3MXZd+AO71+7vxHSIjwsx83Vho6eL2cYKg+4OYS3hc4NcpOdn5pr/HGnkYPELJ Xi4=
  • List-archive: <https://www.eclipse.org/mailman/private/glassfish-dev>
  • List-help: <mailto:glassfish-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/glassfish-dev>, <mailto:glassfish-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AdYvK1LzcYSJnBhrR82ms4+21qoSlA==
  • Thread-topic: 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://github.com/eclipse-ee4j/glassfish-security-plugin/issues/9

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://ci.eclipse.org/glassfish/view/all/job/all-projects_1_build-and-stage/

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


Back to the top