Created
September 13, 2013 07:26
-
-
Save akirasosa/6547654 to your computer and use it in GitHub Desktop.
I have a tons of rspec test cases. Here is an easy way to distribute them between Jenkins slaves.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# LABEL was passed from an upstream job. It will be in 0, 1 or 2. | |
find ./spec -name "*_spec.rb" | awk "NR % 3 == ${LABEL} {print}" | xargs rspec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment