Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Completed

...

Completed

...

1.6.5 - sdc-tosca

1.4.1 - sdc-distribution-client

Consumed API from other projects

ProjectAPI DependencyNotes
AAFv2.1.21

Completed

Dmaapv1.1.11

Completed

SDC

1.6.5 - sdc-tosca

1.4.1 - sdc-distribution-client

Completed
AAI

aai-schema 1.7.2

Completed
SO
REST - No direct link to any libraries
VFC
REST - No direct link to any libraries
SDNR
Dmaap - No direct link to any libraries
SDNC
REST - No direct link to any libraries
CDS0.4.4TODO


Published API - These projects use the policy libraries to build their code

ProjectAPINotes
CLAMPPolicy Lifecycle API

 implemented in own java code


OOFLegacy Policy APIimplemented in own python code
SDNCLegacy Policy APIimplemented in own code
DCAEPolicy Lifecycle APIImplemented own python code

...

2. For any new changes to be done post-Release. Then the we must update to the next SNAPSHOT version:

Steps for Releasing and branching

1. docker2.0 (TBD)common17.0 (TBD)

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.version
  • version.policy.drools-pdp
Release OrderRepo (released version)NotesExample Commit(s) for upgrading versions
1

policy/parent

3.2.0 (TBD)

all pom.xml's

version.properties

https://gerrit.onap.org/r/c/policy/parent/+/110016

2a

policy/docker

2.1.1

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent version
https://gerrit.onap.org/r/c/policy/parentdocker/+/104021114316
2a2b

policy/

common

1.7.1

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent version
https://gerrit.onap.org/r/c/policy/dockercommon/+/102678114285
2b3

policy/

models

2.

3.5

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version


https://gerrit.onap.org/r/c/policy/

common

models/+/

104047

114286

34a

policy/modelsapi

2.3.0 (TBD)3

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent parent version
  • policy.common.version
  • policy.
  • common
  • models.version
https://gerrit.onap.org/r/c/policy/modelsapi/+/104232114288
4a4b

policy/apipap

2.3.0 (TBD)3

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.version
https://gerrit.onap.org/r/c/policy/apipap/+/104257114290
4b4c

policy/papdrools-pdp

21.3.0 (TBD)7.4

all pom.xml's

version.properties

In main pom.xml

change the following properties

consider changing the policy.common.version property:

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.versionpolicy.models.version

Update policy/drools-applications dockerfile to pull this image (see below)

Update policy/drools-applications files:

  • pom.xml: version.policy.drools-pdp

https://gerrit.onap.org/r/c/policy/

pap

drools-pdp/+/

104262

114325

4c4d

policy/droolsapex-pdp

12.7.0 (TBD)4.4

all pom.xml's

version.properties

In main pom.xml consider changing the policy.common.version property:

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.version

Update policy/drools-applications dockerfile to pull this image (see below)

Update policy/drools-applications files:

  • pom.xml: version.policy.drools-pdp
  • controlloop/common/feature-controlloop-management/src/test/resources/op.pom
  • policy.models.version
https://gerrit.onap.org/r/c/policy/droolsapex-pdp/+/104291114292
4d4e

policy/apexxacml-pdp

2.4.0 (TBD)3.3

all pom.xml's

version.properties

In main pom.xml consider changing the policy.common.version property:

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.version
4ehttps://gerrit.onap.org/r/c/policy/xacml-pdp/+/114324
4f

policy/distribution

2.4.3.0 (TBD)

all pom.xml's

version.properties

In main pom.xml

consider changing the policy.common.version property:

change the following properties

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.version
https://gerrit.onap.org/r/c/policy/distribution/+/114291
5 - Dependent only on policy/xacmldrools-pdp/+/1042944f

policy/distributiondrools-applications

21.4.0 (TBD)7.5

all pom.xml's

version.properties

In main pom.xml change the following properties

  • Ensure <parent> tag points to correct policy/parent version
  • policy.common.version
  • policy.models.version
  • version.policy.drools-pdp


https://gerrit.onap.org/r/c/policy/distributiondrools-applications/+/1042965 - Dependent only on policy/drools-pdp

policy/drools-applications

1.6.0

https://gerrit.onap.org/r/c/policy/drools-applications/+/104408

When branching, its easiest to update the .gitreview file ON the new branch in order to ensure that new gerritt submissions are tracked on that branch.

If this is not done, then one should specify the branch when submitting the git review. 'git review guilin'

Code Block
[gerrit]

host=gerrit.onap.org

port=29418

project=policy/engine.git

defaultbranch=guilin

When tagging for a release the following commands should be used:

Code Block
git tag -sm "7.0.0-ONAP Release" 7.0.0-ONAP
git push <remote-name> 7.0.0-ONAP


When branching, its easiest to update the .gitreview file ON the new branch in order to ensure that new gerritt submissions are tracked on that branch.

If this is not done, then one should specify the branch when submitting the git review. 'git review guilin'

Code Block
[gerrit]

host=gerrit.onap.org

port=29418

project=policy/engine.git

defaultbranch=guilin


When tagging for a release, the following commands can be used:

Code Block
git tag -sm "7.0.0-ONAP Release" 7.0.0-ONAP <optional-commit-id>
git push origin 7.0.0-ONAP

Most likely you will need 'gpg2' installed and configured for git in order to sign the tags. NOTE: ONAP is requiring that the tags be signed.

Release tags are best to be applied against the last commit that was for an image release. However, sometimes that does not apply if an image did not require a new release. So its possible some tags will be on the same commit across releases (eg policy/docker is one repo where that is true). Depending on when branching happens, some tags may not be visible in a log for a specific branch. Best to use the online gerrit gui to see all the tags for a repo.


Steps for Releasing and branching

Raise a review to refer released version of dependency (parent, common, models etc.)

Go to latest merged review of repo and comment “stage-release
2. 

It will trigger 2 Jenkins jobs - stage-master & docker-stage-master

NOTE: The "docker-stage-master

3. 

" job will fail for drools-applications

Once the jobs are successful, create a yaml file for releasing maven artifacts first and raise a review

4

.  This file can typically be generated using this script: mkart.sh

Once that is merged and build is successful, create another container.yaml file for releasing docker image and raise a review.  This file can typically be generated using this script: mkdock.sh

NOTE: Drools-applications will require a 2nd "stage-release" to be done

after step 3

due to the way it is built

. The

; the docker image requires the java artifacts to be released first, which are packaged into the image.

5. 
Once that is merged and build is successful, go to nexus3.onap.org & nexus.onap.org and verify that the image
was  
& artifacts were released 
6.

Bump the snapshot version to next patch version and raise a review -

I use

Use this command “mvn versions:set -DnewVersion=

2.5.1-SNAPSHOT7. 

<snapshot-version>

Update the patch version in "version.properties" file.

Below steps are ONLY needed when we are branching and proceeding to new release
Once that is merged and build is successful, go to gerrit and create a
“frankfurt”
“guilin” branch.
(ONLY needed when we are branching and proceeding to new release)
8. 

Once the branch is created, bump the master branch to next minor version using the same maven command and raise a review

9. 
Finally go to 
frankfurt
guilin branch and change the .gitreview file to point to 
frankfurt
guilin as default branch and raise the review.