Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #149 from joepvd/rebuild-tox
Browse files Browse the repository at this point in the history
Rebuild tox environment after change requirements
  • Loading branch information
thiagoalessio authored Sep 1, 2020
2 parents 7024be6 + d642e92 commit 3cc5439
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ pipeline {
steps {
script {
catchError(stageResult: 'FAILURE') {
sh "tox > results.txt 2>&1"
sh """
tox_args="\$(git diff --name-only HEAD~5 | grep -Fxq -e requirements.txt -e requirements-dev.txt -e MANIFEST.in -e setup.py && echo '--recreate')"
tox \$tox_args > results.txt 2>&1
"""
}
results = readFile("results.txt").trim()
echo results
Expand Down

0 comments on commit 3cc5439

Please sign in to comment.