summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-05-15 19:45:58 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-05-15 19:56:20 +0200
commit941018cfe5122d4999fb94cfb6a777ad19615452 (patch)
treec7b30f4501cfb3fb6c499738d89d5e60acec40ef
parent3e9f9ea06b8abb904412acec01b98d2c00f219cd (diff)
downloadnextcloud-server-941018cfe5122d4999fb94cfb6a777ad19615452.tar.gz
nextcloud-server-941018cfe5122d4999fb94cfb6a777ad19615452.zip
Use DRONE_SOURCE_BRANCH instead of DRONE_COMMIT_REFSPEC
Looks like DRONE_COMMIT_REFSPEC is not available anymore on Drone 1.x Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
-rwxr-xr-xbuild/ca-bundle-checker.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/build/ca-bundle-checker.sh b/build/ca-bundle-checker.sh
index 4497642fd95..4d11abc2c74 100755
--- a/build/ca-bundle-checker.sh
+++ b/build/ca-bundle-checker.sh
@@ -1,8 +1,6 @@
#!/usr/bin/env bash
-printenv
-
-if [[ -n ${DRONE_COMMIT_REFSPEC} && ! ${DRONE_COMMIT_REFSPEC} =~ version(\/noid)?\/([0-9.]+) ]]; then
+if [[ -n ${DRONE_SOURCE_BRANCH} && ! ${DRONE_SOURCE_BRANCH} =~ version(\/noid)?\/([0-9.]+) ]]; then
echo "Skip CA bundle check"
exit 0
fi