X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Flf-macros.yaml;h=310df5d7bf5707a1fce725564fcf1d14118bf6d0;hb=56864adf9a6062190e4b9bedc2944cb6a95f8014;hp=f90625e273d8196375b1346a4bbe8a335c66483b;hpb=5c363aa689bb0b9658d20851b772913c07dd2c4c;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index f90625e2..310df5d7 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -109,6 +109,23 @@ Note that Gerrit will override this parameter automatically if a job is triggered by Gerrit. +# Useful parameters when working with TOX +# https://tox.readthedocs.io/ +- parameter: + name: lf-infra-tox-parameters + parameters: + - string: + name: TOX_DIR + default: '{tox-dir}' + description: | + Path to directory containing tox.ini file. + - string: + name: TOX_ENVS + default: '{tox-envs}' + description: | + Tox environments to run build against. + Example: docs,py2,py3 + # Set an env var for shell scripts to be able to call the dynamically installed # maven without having to calculate the path themselves - parameter: @@ -160,7 +177,7 @@ scm: - git: credentials-id: '{jenkins-ssh-credential}' - url: '$GIT_URL/$GERRIT_PROJECT' + url: '{git-url}' refspec: '{refspec}' branches: - 'refs/heads/{branch}'