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

[CE-919] Add AWS Codebuild support #220

Merged
merged 14 commits into from
Nov 6, 2019
Prev Previous commit
Next Next commit
add pr handling logic
  • Loading branch information
drazisil authored Oct 31, 2019
commit 43e40a1889eab94aea83a801803eee2dad7ecf21
6 changes: 5 additions & 1 deletion codecov
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,11 @@ then
commit="$CODEBUILD_RESOLVED_SOURCE_VERSION"
build="$CODEBUILD_BUILD_ID"
branch="$(echo $CODEBUILD_WEBHOOK_HEAD_REF | sed 's/^refs\/heads\///')"
pr="$(echo $CODEBUILD_SOURCE_VERSION | sed 's/^pr\///')"
if [ "${CODEBUILD_SOURCE_VERSION/"pr/"}" = ""pr/"" ] ; then
prr="false"
else
pr="$(echo $CODEBUILD_SOURCE_VERSION | sed 's/^pr\///')"
fi
job="$CODEBUILD_BUILD_ID"
slug="$(echo $CODEBUILD_SOURCE_REPO_URL | sed 's/^.*github.com\///' | sed 's/\.git$//')"

Expand Down