Use gerrit-tox-verify for SFC python verification 73/68873/5
authorJaime Caamaño Ruiz <jcaamano@suse.com>
Wed, 28 Feb 2018 12:37:32 +0000 (13:37 +0100)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 15 Mar 2018 14:38:04 +0000 (10:38 -0400)
The original python verfication job had some issues with outdated pip
and setuptools. Take this chance to move SFC python verification over
to the global JJB tox verification job template.

The gap betwwen the two is the use of jenkins_build_package.sh to upload
the sfc-py artifact to pypi. This is silently failing anyway since the
credentials are no longer valid. It will neeed to be done through some
other way, if at all.

Change-Id: I08c483924468917bcc41fe77e06eff9930255859
JIRA: SFC-217
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
jjb/sfc/sfc-python.yaml

index bfe6ef9e04104859b60a69dc652270676d6461a5..331afd100d16fac746af45b9ab22613bf0a6cf42 100644 (file)
@@ -2,7 +2,7 @@
 - project:
     name: sfc-python
     jobs:
-      - 'sfc-verify-python-{stream}'
+      - 'gerrit-tox-verify'
 
     stream:
       - fluorine:
           branch: 'stable/carbon'
 
     project: 'sfc'
-
-- job-template:
-    name: 'sfc-verify-python-{stream}'
-
-    project-type: freestyle
-    node: centos7-builder-2c-8g
-    concurrent: true
-
-    properties:
-      - opendaylight-infra-properties:
-          build-days-to-keep: '{build-days-to-keep}'
-
-    parameters:
-      - opendaylight-infra-parameters:
-          os-cloud: '{os-cloud}'
-          project: '{project}'
-          branch: '{branch}'
-          refspec: 'refs/heads/{branch}'
-          artifacts: '{archive-artifacts}'
-
-    scm:
-      - gerrit-trigger-scm:
-          refspec: '$GERRIT_REFSPEC'
-          choosing-strategy: 'gerrit'
-
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
-    triggers:
-      - gerrit-trigger-patch-submitted:
-          gerrit-server-name: '{gerrit-server-name}'
-          project: '{project}'
-          branch: '{branch}'
-          files: 'sfc-py/**'
-
-    builders:
-      - shell: |
-          virtualenv $WORKSPACE/venv-tox
-          source $WORKSPACE/venv-tox/bin/activate
-          PYTHON="$WORKSPACE/venv-tox/bin/python"
-          $PYTHON -m pip install tox argparse
-          tox --version
-          cd $WORKSPACE/sfc-py
-          tox
-          ./jenkins_build_package.sh
-
-    publishers:
-      - email-notification:
-          email-recipients: '{email-recipients}'
-          email-prefix: '[sfc]'
+    project-name: 'sfc'
+    tox-dir: sfc-py