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
Another try at bash magic pr handling
  • Loading branch information
drazisil authored Oct 31, 2019
commit 6ed53df526093614f9c499b3e487bfc816cbf171
4 changes: 2 additions & 2 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,11 @@ then
commit="$CODEBUILD_RESOLVED_SOURCE_VERSION"
build="$CODEBUILD_BUILD_ID"
branch="$(echo $CODEBUILD_WEBHOOK_HEAD_REF | sed 's/^refs\/heads\///')"
if [ "${CODEBUILD_SOURCE_VERSION/"pr/"}" = ""pr/"" ] ; then
if [ "${CODEBUILD_SOURCE_VERSION/pr}" = "$CODEBUILD_SOURCE_VERSION" ] ; then
pr="false"
else
pr="$(echo $CODEBUILD_SOURCE_VERSION | sed 's/^pr\///')"
fi
fi
job="$CODEBUILD_BUILD_ID"
slug="$(echo $CODEBUILD_SOURCE_REPO_URL | sed 's/^.*github.com\///' | sed 's/\.git$//')"

Expand Down