Move yq install to python-tools-install 89/15789/2
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 30 May 2019 17:55:50 +0000 (10:55 -0700)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 30 May 2019 18:50:13 +0000 (11:50 -0700)
This will allow future scripts to use yq package.

Change-Id: Ic855363698cfeb28c5f3428dd381f42c3ea5b1a3
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
releasenotes/notes/move-yq-install-975a96e15d33bbb3.yaml [new file with mode: 0644]
shell/docker-get-yaml-tag.sh
shell/python-tools-install.sh

diff --git a/releasenotes/notes/move-yq-install-975a96e15d33bbb3.yaml b/releasenotes/notes/move-yq-install-975a96e15d33bbb3.yaml
new file mode 100644 (file)
index 0000000..3e046fd
--- /dev/null
@@ -0,0 +1,5 @@
+---
+other:
+  - |
+    Add yq install as part of python-tools-install.sh
+    Allow future scripts to use yq package.
index 936c272..2a1bbdc 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2019 The Linux Foundation and others.
@@ -13,10 +13,6 @@ echo "---> docker-get-yaml-tag.sh"
 
 set -eu -o pipefail
 
-# Install yq to read container-tag.yaml
-python -m pip install --user --quiet --upgrade yq
-export PATH="/home/jenkins/.local/bin:$PATH"
-
 cd "$DOCKER_ROOT"
 container_tag_file=container-tag.yaml
 
index 9eff460..6d519d9 100644 (file)
@@ -49,6 +49,7 @@ python-heatclient~=1.16.1
 python-openstackclient~=3.16.0
 dogpile.cache~=0.6.8  # Version 0.7.[01] seems to break openstackclient
 niet~=1.4.2 # Extract values from yaml
+yq~=2.7.2
 EOF
 
     # Use `python -m pip` to ensure we are using the latest version of pip