#!/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"