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

Commit 360a4ee

Browse files
committed
add support for detecting Bamboo
1 parent 7fcdef0 commit 360a4ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

codecov

+11
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,17 @@ then
450450
ddp="/private/tmp/sandbox/${BUDDYBUILD_APP_ID}/bbtest"
451451
fi
452452

453+
elif [ "${bamboo_planRepository_revision}" != "" ];
454+
then
455+
say "$e==>$x Bamboo detected"
456+
# https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html#Bamboovariables-Build-specificvariables
457+
service="bamboo"
458+
commit="${bamboo_planRepository_revision}"
459+
branch="${bamboo_planRepository_branch}"
460+
build="${bamboo_buildNumber}"
461+
build_url="${bamboo_buildResultsUrl}"
462+
slug=$(echo "${bamboo_planRepository_repositoryUrl}" | cut -d / -f 4,5 | cut -d . -f 1)
463+
453464
elif [ "$CI" = "true" ] && [ "$BITRISE_IO" = "true" ];
454465
then
455466
say "$e==>$x Bitrise CI detected."

0 commit comments

Comments
 (0)