- 1 Preface
- 2 Check out releng tools
- 3 Prepare new release branch
- 4 Update release branch
- 5 Apply version
- 6 Building
- 7 Push release commit and tag
- 8 Perform build
- 9 Test
- 10 Promote
- 11 MSI
- 12 Publish to Maven Central
- 13 The one liner test
- 14 Legal Stuff
- 15 Update Web-Page
All release builds are performed using the "aggregator-release" project -> https://hudson.eclipse.org/eclipsescada/job/aggregator-release/
This document uses "bash" shell commands and assumes your are running a Linux system with the following tools installed:
- Java 1.8
Release Branch: 0.1.x-release
Tags (Release): R0.1.0
Tags (Milestone): S0.1.0.M1
For each release cycle there will be a new branch: e.g. 0.1.x-release. On this branch we will force the version qualifiers using our own maven plugin. Qualifiers are generated using the tycho jgit buildtimestamp plugin, but using a custom plugin (org.eclipse.scada.releng:build-helper).
Development goes on in the "master" branch. Changes are merged from the master branch to the release branch. The branch committing the generated qualifiers will be revered (using git revert) and then the master branch will be merged in. This means also that the last commit on the release branch MUST BE the commit of the generated qualifiers.
After the release, so for service releases, the master branch will NOT be merged to the release branch. Changes will me manually merged to the release branch, so the automated merging will not take place.
The generated qualifiers will be committed, tagged and pushed to the release branch after a local build.
The Hudson instance will be used to compile and sign the release branch. It will create a local "staging" directory which will receive the content that will go to download.eclipse.org.
The build is checked and then promoted to the download area.
Check out releng tools
You will need to check out the releng shell scripts:
The shell scripts are under "performRelease". All following commands assume you are in that directory.
You will need to set the environment variable ECLIPSE_COMMITTER to the name of your gerrit account:
Change into the project directory:
Prepare new release branch
Create a new branch for each release cycle: e.g. 0.1.x-release
Edit the file "profile" and update the branch name (version, branch).
Check the output in the "workspace" directory.
Push the branch to gerrit:
Changes on the master must be merged to the release branch during the release cycle. New features that should not be included in the release must go to separate feature branches. After the final release is performed they may be merged on the master.
If it turns out that merging on the release branch is to cumbersome we will make branches for every release tag in order to prevent merge issues.
Update release branch
After the release branch has been created and must by updated at some point from the master branch.
Check the output in the "workspace" directory.
Build locally (milestone):
Build locally (release):
Wait and check the output in /tmp/my-download-test
If everything looks good push the commit and tag.
Push release commit and tag
Push the forces qualifiers and the tag:
Check https://git.eclipse.org/c if the changes made it to gerrit.
Perform the build on the Eclipse SCADA Hudson instance
- Job: https://hudson.eclipse.org/eclipsescada/job/org.eclipse.scada.releng.superParent/
- Wait for the job to complete!
- Job: https://hudson.eclipse.org/eclipsescada/job/aggregator-release/
The result is in the directory "staging" under the workspace of the project "aggregator-release".
- Run the CI job -> https://hudson.eclipse.org/eclipsescada/job/promote-release/
This job will copy (using local rsync) the output of the build to the download area and afterwards build the composite repositories for "/updates".
Creating the MSI files is a task which requires a windows build slave. Therefore we do have a job at the global hudson instance. However the windows slave cannot push files to the download area. So we do need a second job that promotes the MSI files from the output of the job, running on the global hudson, to the download area.
This whole process is performed after the main build is done and everything is already at the download area.
Build the MSI installer
Start the MSI installer job from the main Hudson instance: https://hudson.eclipse.org/shared/job/EclipseSCADA-Installer-Windows
You will need to specify the version, buildId and versionSuffix (e.g. -M3).
Promote the MSI files
Run the promote-msi-release job from the HIPP instance: https://hudson.eclipse.org/eclipsescada/job/promote-msi-release/
Use the same version, buildId and versionSuffix as you did for the build job on the global hudson instance.
Publish to Maven Central
Update the properties file in: "publishToCentral" in the "releng" repository.
The one liner test
rm -Rf workspace && ./checkoutBranch && ./mergeFromMaster && ./applyVersion && ./createTag && ./buildLocally
This is required for major releases (not for milestone or maintenance releases).
Do not forget to update the EclipseSCADA/Release/Webpage!