[ci skip] need to checkout on a branch, aparently travis doesnt do that...
Pavlos Emm. Katsoulakis committed
Apr 18, 2019 at 11:24 UTC
c6182291c93f13e7e744bc73b296ec461d899d2e
2 files changed
+13
-2
.travis/create_artifacts.sh
+6
-1
@@ -13,7 +13,12 @@ if [ ! "${TRAVIS_REPO_SLUG}" == "netdata/netdata" ]; then
13
exit 0
14
fi;
15
16
-echo "Pulling latest code"
16
+echo "--- Initialize git configuration ---"
17
+export GIT_MAIL="bot@netdata.cloud"
18
+export GIT_USER="netdatabot"
19
+git config user.email "${GIT_MAIL}"
20
+git config user.name "${GIT_USER}"
21
+git checkout master
22
git pull
23
24
# Everything from this directory will be uploaded to GCS
.travis/draft_release.sh
+7
-1
@@ -22,9 +22,15 @@ if [ ! -f .gitignore ]; then
22
exit 1
23
fi
24
25
-echo "Pulling latest code"
25
+echo "--- Initialize git configuration ---"
26
+export GIT_MAIL="bot@netdata.cloud"
27
+export GIT_USER="netdatabot"
28
+git config user.email "${GIT_MAIL}"
29
+git config user.name "${GIT_USER}"
30
+git checkout master
31
git pull
32
33
+
34
if [[ $(git describe) =~ -rc* ]]; then
35
echo "This is a release candidate tag, we do not generate a release draft"
36
exit 0