Skip to content

Commit

Permalink
Change schema to make BuggyBuildId required. Change script to extract
Browse files Browse the repository at this point in the history
build id
  • Loading branch information
surli committed Jan 31, 2018
1 parent 66f3016 commit c8f4b6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/extract_buggybuildid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ do
BUILDID=`jq -r .metrics.BuggyBuildId repairnator.json`
echo "repairnator.json is valid in $branchname. Found following buildid: $BUILDID"
echo "$BUILDID $branchname" >> $DEST
else
BUILDID=`jq -r .buildid repairnator.json`
if [ "$BUILDID" != "null" ]; then
echo "repairnator.json is NOT valid in $branchname but Found following buildid: $BUILDID"
echo "$BUILDID $branchname" >> $DEST
else
echo "repairnator.json is not valid and no interesting value found in $branchname"
fi
fi
else
echo "No property or json file has been found for repairnator in $branchname."
Expand Down
1 change: 1 addition & 0 deletions resources/repairnator-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@
"NbFailingTests",
"FailureNames",
"BugCommitUrl",
"BuggyBuildId",
"BuggyBuildURL",
"BuggyBuildDate",
"BugCommit",
Expand Down

0 comments on commit c8f4b6d

Please sign in to comment.