From: Vladimir Khlyunev Date: Wed, 13 Feb 2019 06:33:16 +0000 (+0400) Subject: Fix tox installation in update-jeknins-jobs X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=e30e978ade32388d84139bd2a7bb1406ed9233a5;p=tools%2Fsustaining.git Fix tox installation in update-jeknins-jobs Also drop comments from update-jenkins-view script Change-Id: I5d4c8530cddba4b40711214dcda56949d6584892 --- diff --git a/maintenance-ci/common/scripts/update-jenkins-jobs.sh b/maintenance-ci/common/scripts/update-jenkins-jobs.sh index b166d04..e160a6f 100644 --- a/maintenance-ci/common/scripts/update-jenkins-jobs.sh +++ b/maintenance-ci/common/scripts/update-jenkins-jobs.sh @@ -1,7 +1,7 @@ #!/bin/bash set -ex -tox --help || apt-get install -y python-tox +tox --help || sudo apt-get install -y python-tox tox -e jobs source ".tox/jobs/bin/activate" diff --git a/maintenance-ci/common/scripts/update-jenkins-views.sh b/maintenance-ci/common/scripts/update-jenkins-views.sh index b2a436d..1fef179 100644 --- a/maintenance-ci/common/scripts/update-jenkins-views.sh +++ b/maintenance-ci/common/scripts/update-jenkins-views.sh @@ -1,41 +1,7 @@ #!/bin/bash -# -# :mod:`update-jenkins-views` -- Updating jenkins views -# ===================================================== -# -# .. module:: sample-bash-script -# :platform: Unix, Windows -# :synopsis: Update views on Jenkins envs -# .. vesionadded:: MOS-10.0 -# .. vesionchanged:: MOS-10.0 -# .. author:: Artur Mihura -# -# -# This script is used to update views on jenkins environments using -# jenkins-view-builder and YAML files with view descriptions -# -# .. envvar:: -# :var CI_NAME: Id of Jenkins build under which this -# script is running, defaults to ``0`` -# :type CI_NAME: string -# :var VIEWS_LIST: Space separated list of view YAMLS to update. -# Will update all views if empty -# :type VIEWS_LIST: string -# :var WORKSPACE: Location where build is started, defaults to ``.`` -# :type WORKSPACE: path -# -# -# .. requirements:: -# -# * ``tox`` in ``/usr/bin/tox` -# -# -# .. seealso:: https://bugs.launchpad.net/fuel/+bug/1496987 -# .. warnings:: never use on production for test purposes - set -ex -tox --help || apt install -y python-tox +tox --help || sudo apt install -y python-tox tox -e views source ".tox/ci-views/bin/activate"