diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-12-12 17:38:45 +0100 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2022-12-12 17:38:45 +0100 |
commit | 96e3f714d9962f15ec3d2af43da1fc1e25f62f5e (patch) | |
tree | 748031d49b29f6fb26b7be615a2f3b8a2f1154e4 | |
parent | a28ae3b44dff34d302e474d9135d2edc1efe5b36 (diff) |
Replace pip calls by the appropriate packages
Change-Id: I415bb0742e84eda658672bcc7d54c704b509ece0
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | jjb/global/releng-macros.yaml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/jjb/global/releng-macros.yaml b/jjb/global/releng-macros.yaml index b82fbea95..031e24070 100644 --- a/jjb/global/releng-macros.yaml +++ b/jjb/global/releng-macros.yaml @@ -445,8 +445,12 @@ builders: - shell: | #!/bin/bash - # Install python package - sudo -H pip install "flake8==2.6.2" + + sudo apt-get -o DPkg::Lock::Timeout=300 update && \ + sudo DEBIAN_FRONTEND=noninteractive apt-get \ + -o DPkg::Lock::Timeout=300 dist-upgrade -y + sudo DEBIAN_FRONTEND=noninteractive \ + apt-get -o DPkg::Lock::Timeout=300 install flake8 -y echo "Checking python code..." for f in $(egrep '\.py$' modified_files) @@ -463,8 +467,12 @@ builders: - shell: | #!/bin/bash - # sudo Install python packages - sudo -H pip install "yamllint==1.8.2" + + sudo apt-get -o DPkg::Lock::Timeout=300 update && \ + sudo DEBIAN_FRONTEND=noninteractive apt-get \ + -o DPkg::Lock::Timeout=300 dist-upgrade -y + sudo DEBIAN_FRONTEND=noninteractive \ + apt-get -o DPkg::Lock::Timeout=300 install yamllint -y echo "Checking yaml file..." for f in $(egrep '\.ya?ml$' modified_files) |