]> review.fuel-infra Code Review - tools/sustaining.git/commitdiff
Fix tox installation in update-jeknins-jobs 88/40488/2
authorVladimir Khlyunev <vkhlyunev@mirantis.com>
Wed, 13 Feb 2019 06:33:16 +0000 (10:33 +0400)
committerVladimir Khlyunev <vkhlyunev@mirantis.com>
Wed, 13 Feb 2019 06:34:50 +0000 (10:34 +0400)
Also drop comments from update-jenkins-view script

Change-Id: I5d4c8530cddba4b40711214dcda56949d6584892

maintenance-ci/common/scripts/update-jenkins-jobs.sh
maintenance-ci/common/scripts/update-jenkins-views.sh

index b166d04f919bccb3ea6b3edcce195c06fea4b8dd..e160a6fbc569a1775a49fcfde6235a9137d8fd61 100644 (file)
@@ -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"
index b2a436d0bda57a972e1adc988ed6d5b3e9248c73..1fef179c3b385749d7eb20727415f09d086b2de0 100644 (file)
@@ -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 <amihura@mirantis.com>
-#
-#
-#   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"