Install lftools using the global-jjb scripts 21/57221/3
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 16 May 2017 22:37:42 +0000 (08:37 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Mon, 22 May 2017 01:58:06 +0000 (11:58 +1000)
Change-Id: I9bb203890eeab2cefa9cdda0640cfd72d8600e3e
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/autorelease/autorelease-macros.yaml
jjb/autorelease/include-raw-autorelease-release-versions.sh
jjb/opendaylight-infra-cleanup-old-images.sh
jjb/releng-jobs.yaml

index 0d85280568111b5ab66e67646f11f18d5133230b..288209521f886aeb5d185b97201354e90ad60e41 100644 (file)
 - builder:
     name: autorelease-generate-release-patches
     builders:
-      - shell: !include-raw: include-raw-autorelease-release-versions.sh
+      - shell: !include-raw:
+          - ../global-jjb/shell/lftools-install.sh
+          - include-raw-autorelease-release-versions.sh
 
 - builder:
     name: autorelease-get-integration-test-variables
index 0b38f0ee081549f07041083a0cdd8644b1b80c1d..e84b8caa2745012980dc62da27377db49b43224e 100644 (file)
 # RELEASE_TAG=Beryllium-SR1  # Example
 # RELEASE_BRANCH=stable/beryllium  # Example
 
-LFTOOLS_DIR="$WORKSPACE/.venv-lftools"
-if [ ! -d "$LFTOOLS_DIR" ]
-then
-    virtualenv "$LFTOOLS_DIR"
-    # shellcheck disable=SC1090
-    source "$LFTOOLS_DIR/bin/activate"
-    pip install --upgrade pip
-    pip freeze
-    pip install lftools
-fi
-# shellcheck disable=SC1090
-source "$LFTOOLS_DIR/bin/activate"
-
 # Directory to put git format-patches
 PATCH_DIR="$WORKSPACE/patches"
 
index 129ab133624cac2b8ac9d487a5cbd9363b317d3a..b3b28e1037914a20eb5502998654c0728e5c24e3 100644 (file)
@@ -1,16 +1,4 @@
 #!/bin/bash
-LFTOOLS_DIR="$WORKSPACE/.venv-lftools"
-if [ ! -d "$LFTOOLS_DIR" ]
-then
-    virtualenv "$LFTOOLS_DIR"
-    # shellcheck disable=SC1090
-    source "$LFTOOLS_DIR/bin/activate"
-    pip install --upgrade pip
-    pip install "lftools>=0.0.10"
-    pip freeze
-fi
-# shellcheck disable=SC1090
-source "$LFTOOLS_DIR/bin/activate"
 
 lftools openstack --os-cloud odlpriv-sandbox \
     image cleanup --hide-public=True \
index 7fe94b94292015b18d36a1ca91d3c30afecbfed3..e139fc0749fc612b3c2dbdd2a1fc94c60bff4479 100644 (file)
       - timed: '@weekly'
 
     builders:
-      - shell: !include-raw-escape: opendaylight-infra-cleanup-old-images.sh
+      - shell: !include-raw-escape:
+          - global-jjb/shell/lftools-install.sh
+          - opendaylight-infra-cleanup-old-images.sh
 
     publishers:
       - email-notification: