Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Notes

...

on

...

deployment

...

policies

...

  • Major

...

  • version

...

  • number

...

  • will

...

  • remain

...

  • 0

...

  • until

...

  • we

...

  • make

...

  • a

...

  • "marketing"

...

  • decision

...

  • that

...

  • we

...

  • are

...

  • calling

...

  • Synapse

...

  • production

...

  • instead

...

  • of

...

  • under

...

  • development.

...

  • Minor

...

  • version

...

  • number

...

  • will

...

  • correspond

...

  • to

...

  • Sprint

...

  • number.

...

  • Code

...

  • should

...

  • never

...

  • be

...

  • deployed

...

  • to

...

  • any

...

  • production

...

  • system

...

  • on

...

  • Amazon

...

  • directly

...

  • from

...

  • a

...

  • development

...

  • environment

...

  • build.

...

  •  All deployed artifacts should be produced by a successful Bamboo build and deployed to Artifactory by that build process.  Only deploy artifacts to AWS that have been obtained from Artifactory.
  • Code from the tip of trunk or development should always have a maven version of 0.x-SNAPSHOT

...

  • where

...

  • x

...

  • is

...

  • the

...

  • sprint

...

  • (minor

...

  • version)

...

  • number.

...

  • For

...

  • weekly

...

  • dev-team

...

  • integration

...

  • deployments,

...

  • it's

...

  • not

...

  • necessary

...

  • to

...

  • create

...

  • a

...

  • new

...

  • version.

...

  •  We will simply deploy snapshots off trunk, and include the build number and date in the version label when deploying to Beanstalk.  Any deployments to customer-facing stacks need to be tagged in SVN and archived in Artifactory.

Creating an Initial Minor Release

For end of sprint x, the branching and tagging procedure is:

  1. Send email to platform declaring a check-in freeze on trunk
  2. Verify that most recent check-in results in a clean Bamboo build of trunk
  3. Do a svn copy of trunk to branches/Synapse-0.x.

...

  1.  If we need to do work to create a patch release, it will go in this branch, and continue to be labeled 0.x-SNAPSHOT.

...

  1. Do

...

  1. a

...

  1. svn

...

  1. copy

...

  1. of

...

  1. branches/Synapse-0.x

...

  1. to

...

  1. tags/Synapse-0.x.0

...

  1. Check

...

  1. out

...

  1. tags/Synapse-0.x.0

...

  1. and

...

  1. change

...

  1. the

...

  1. root

...

  1. pom.xml

...

  1. file

...

  1. to

...

  1. update

...

  1. application

...

  1. version

...

  1. from

...

  1. 0.x-SNAPSHOT

...

  1. to

...

  1. 0.x.0

...

  1. and

...

  1. check

...

  1. that

...

  1. in.

...

  1.  Eclipse will give you a warning that you shouldn't

...

  1. be

...

  1. checking

...

  1. in

...

  1. to

...

  1. a

...

  1. tag.

...

  1.  Do it anyways,

...

  1. and

...

  1. then

...

  1. delete

...

  1. the

...

  1. code

...

  1. from

...

  1. your

...

  1. workspace

...

  1. so

...

  1. you

...

  1. never

...

  1. accidently

...

  1. modify

...

  1. the

...

  1. tagged

...

  1. version

...

  1. again.

...

  1. Create

...

  1. a

...

  1. copy

...

  1. of

...

  1. the

...

  1. Bamboo

...

  1. build

...

  1. of

...

  1. trunk

...

  1. and

...

  1. reconfigure

...

  1. it

...

  1. to

...

  1. point

...

  1. it

...

  1. at

...

  1. tags/Synapse-0.x.0

...

  1. Manually

...

  1. kick

...

  1. off

...

  1. a

...

  1. build,

...

  1. which

...

  1. should

...

  1. pass

...

  1. and

...

  1. create

...

  1. the

...

  1. 0.x.0

...

  1. artifacts

...

  1. in

...

  1. Artifactory

...

  1. Reconfigure

...

  1. the

...

  1. Bamboo

...

  1. build

...

  1. to

...

  1. point

...

  1. to

...

  1. branches/Synapse-0.x

...

  1. Update

...

  1. trunk

...

  1. pom.xml

...

  1. to

...

  1. 0.

...

  1. [x+1

...

  1. ]-SNAPSHOT

...

  1. and

...

  1. check

...

  1. it

...

  1. in.

...

  1.  This should generate a bamboo build of trunk that pushes 0.[x+1]-SNAPSHOT to Artifactory for the first time.  Verify that this in fact happens.
  2. Send email to platform declaring trunk and branch open for check-ins.

Creating a Patch Release

A patch release is a build of Synapse deployed to a production system facing end users, including internal alpha testers.  All Patch releases should have the form 0.x.y,

...

where

...

0.x.0

...

is

...

the

...

initial

...

sprint

...

deliverable,

...

and

...

subsequent

...

patches

...

that

...

are

...

customer

...

facing

...

increment

...

the

...

3rd

...

position

...

of

...

the

...

version

...

number.

...

 The procedure to create patch y on branch x is:

  1. Send email to platform declaring a check-in freeze on the branch
  2. Verify that the most recent check-in on the branch resulted in a clean Bamboo build
  3. Do a svn copy of branches/Synapse-0.x

...

  1. to

...

  1. tags/Synapse-0.x.y

...

  1. Check

...

  1. out

...

  1. tags/Synapse-0.x.y

...

  1. and

...

  1. change

...

  1. the

...

  1. root

...

  1. pom.xml

...

  1. file

...

  1. to

...

  1. update

...

  1. application

...

  1. version

...

  1. from

...

  1. 0.x-SNAPSHOT

...

  1. to

...

  1. 0.x.y

...

  1. and

...

  1. check

...

  1. that

...

  1. in.

...

  1.  Eclipse will give you a warning that you shouldn't

...

  1. be

...

  1. checking

...

  1. in

...

  1. to

...

  1. a

...

  1. tag.

...

  1.  Do it anyways,

...

  1. and

...

  1. then

...

  1. delete

...

  1. the

...

  1. code

...

  1. from

...

  1. your

...

  1. workspace

...

  1. so

...

  1. you

...

  1. never

...

  1. accidently

...

  1. modify

...

  1. the

...

  1. tagged

...

  1. version

...

  1. again.

...

  1. Reconfigure

...

  1. the

...

  1. Bamboo

...

  1. build

...

  1. of

...

  1. the

...

  1. branch

...

  1. to

...

  1. point

...

  1. to

...

  1. tags/Synapse-0.x.y

...

  1. Manually

...

  1. kick

...

  1. of

...

  1. a

...

  1. Bamboo

...

  1. build

...

  1. and

...

  1. verify

...

  1. that

...

  1. a

...

  1. clean

...

  1. build

...

  1. generates

...

  1. Synapse-0.x.y

...

  1. artifacts

...

  1. in

...

  1. Artifactory

...

  1. Reconfigure

...

  1. the

...

  1. bamboo

...

  1. build

...

  1. to

...

  1. point

...

  1. back

...

  1. to

...

  1. branches/Synapse-0.x

...

  1. Send

...

  1. email

...

  1. to

...

  1. platform

...

  1. declaring

...

  1. branch

...

  1. open

...

  1. for

...

  1. checkouts.