Skip to content

Commit

Permalink
Merge pull request cms-sw#161 from nclopezo/add-queue-new-prs-script
Browse files Browse the repository at this point in the history
PR Tests: added a script that queues the new prs to be tested.
  • Loading branch information
nclopezo committed Oct 20, 2014
2 parents de39479 + 9214418 commit ec85cb3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions queue-new-prs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/sh -ex

# Uses query-new-pull-requests to get the latest PRS.
# It checks if the PR is for a branch for which automatic tests are activated.
# Finally, it creates a properties file with the PR number for jenkins to trigger the next job.

for PR in `./query-new-pull-requests ${TIME_INTERVAL}`; do

# Use helper to get PR branch
RELEASE_QUEUE=`./get-pr-branch $PR`
if cat config.map | grep $RELEASE_QUEUE | grep -v DISABLED= | grep PR_TESTS= ; then
echo 'Creating properties file for '$PR
echo "PULL_REQUEST=$PR" >> $WORKSPACE/approve-pr-tests-$PR-properties.txt
fi


done

0 comments on commit ec85cb3

Please sign in to comment.