Skip to content

Instantly share code, notes, and snippets.

@kumbasar
Created December 24, 2018 06:32
Show Gist options
  • Select an option

  • Save kumbasar/4bdd7fba7c7319b3f5dac0f5a2732479 to your computer and use it in GitHub Desktop.

Select an option

Save kumbasar/4bdd7fba7c7319b3f5dac0f5a2732479 to your computer and use it in GitHub Desktop.
virtualenv in Jenkinsfile
sh """
#!/bin/bash
PATH=${WORKSPACE}/venv/bin:/usr/local/bin:\$PATH
rm -rf venv
virtualenv -p python3 venv
. venv/bin/activate
pip3 install pylint
venv/bin/pylint test/tests/ -r n --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > pylint-report.txt || exit 0
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment