[INTEGRATION][ONAP Python SDK] Configure Jenkins to release package on PyPI

Use gerrit-pypi jobs to verify and release onapsdk package on version change (release)

Issue-ID: INT-2188
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: Ic7ffffcd9c32bd7593baacc6cd44f91c5f8d0b26
diff --git a/jjb/integration/integration-python-onapsdk.yaml b/jjb/integration/integration-python-onapsdk.yaml
index a34dc68..80eee68 100644
--- a/jjb/integration/integration-python-onapsdk.yaml
+++ b/jjb/integration/integration-python-onapsdk.yaml
@@ -56,3 +56,32 @@
     build-node: centos8-builder-2c-1g
     jobs:
       - gerrit-info-yaml-verify
+
+- project:
+    name: integration-python-onapsdk-pypi-build
+    project: integration/python-onapsdk
+    project-name: integration-python-onapsdk
+    stream:
+      - 'master':
+          branch: 'master'
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'src/onapsdk/version.py'
+    jobs:
+      - gerrit-pypi-verify
+      - gerrit-pypi-merge:
+          pypi-repo: pypi-test
+
+- project:
+    name: integration-python-onapsdk-pypi-release
+    project: integration/python-onapsdk
+    project-name: integration-python-onapsdk
+    stream:
+      - 'master':
+          branch: 'master'
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: 'src/onapsdk/version.py'
+    jobs:
+      - gerrit-pypi-release-verify
+      - gerrit-pypi-release-merge