Copy all directories from updates-nightly to releases/milestones/${MILESTONES.VERSION}.
Modify repo to enable statistic
set the files permissions.
Deliver new products.
archive current version : cp products/current-milestone/* /home/data/httpd/archive.eclipse.org/koneki/products/milestones/${CURRENT.NUM.VERSION.MILESTONE_NUM}/
deliver new version : cp /shared/jobs/koneki-ldt/lastSuccessful/archive/product/target/products/* products/current-milestone
set the files permissions.

If script execution is ok:

Tag the last commit of the master branches.

Major versions

Test the milestones version which is the releases candidate.

If tests are ok :

Copy all the directories from releases/stable/${NUM.VERSION} to /home/data/httpd/archive.eclipse.org/koneki/releases/${NUM.VERSION}

Delete all directories in releases/stable/${NUM.VERSION}

Copy all directories from releases/milestones/${MILESTONES.VERSION} in releases/stable/${NUM.VERSION}

Delete all directories in releases/milestones/${MILESTONES.VERSION}

Check the files permissions.

Tag the master branches.

Create maintenance branches.

Increment version on master branches then commit it.

Increment version to the next maintenance version then commit it.

Change hudson configuration of maintenance builds to build the new one.