Update tox-sonar job to use lf-infra-pre-build 96/12596/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 14 Sep 2018 01:31:49 +0000 (21:31 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 14 Sep 2018 01:33:55 +0000 (21:33 -0400)
Use lf-infra-pre-build to install lftools via --user config. This
resolves the post-build install failing with missing pip==18.0.
This is related to the lftools-venv series of patches.

Change-Id: I3c0320ada2e6ede3ce6b680ee26aa2a0b74e5e6d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/lf-python-jobs.yaml

index 2de5d8b..dbd0944 100644 (file)
               can call "org.codehaus.mojo:sonar-maven-plugin:3.3.0.603:sonar".
 
     builders:
-      - shell: !include-raw-escape:
-          # Workaround issue where the tox run later breaks the lftools virtualenv.
-          # Without running the install first the run in the publisher will fail
-          # due to missing lftools because it gets installed into a tox venv.
-          - ../shell/lftools-install.sh
+      - lf-infra-pre-build
       - lf-infra-tox-install:
           python-version: '{python-version}'
       - shell: !include-raw-escape: ../shell/tox-run.sh