-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
434 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
#!/usr/bin/env bash | ||
LATEST_COMMIT=$(git rev-parse HEAD) | ||
VERSION_COMMIT=$(git log -1 --format=format:%H VERSION) | ||
if [ $VERSION_COMMIT = $LATEST_COMMIT ]; | ||
then | ||
if [ -s VERSION ] # Check if content is empty | ||
then | ||
VERSION=`cat VERSION` | ||
echo "VERSION is changed to $VERSION" | ||
else | ||
echo "[ERROR] VERSION file is empty." | ||
exit 1 | ||
fi | ||
git config user.email "splunk-oss-admin@splunk.com" | ||
git config user.name "splunk-oss-admin" | ||
git checkout develop | ||
git pull origin develop | ||
git checkout -b release/$VERSION origin/develop | ||
git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-kubernetes-objects.git release/$VERSION | ||
git checkout master | ||
git merge --no-edit release/$VERSION | ||
git push https://$RELEASE_GITHUB_USER:$RELEASE_GITHUB_PASS@github.com/splunk/fluent-plugin-kubernetes-objects.git master | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
:rubygems_api_key: __RUBYGEMS_API_KEY__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
echo "Pushing object gem to rubygems.org..." | ||
echo "gem `gem --version`" | ||
cat .circleci/gem_credentials | sed -e "s/__RUBYGEMS_API_KEY__/${RUBYGEMS_API_KEY}/" > ~/.gem/credentials | ||
chmod 0600 ~/.gem/credentials | ||
gem push /tmp/pkg/fluent-plugin-kubernetes-objects-*.gem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/usr/bin/env bash | ||
|
||
# trigger SCK 'master' branch to introduce this new image from this commit | ||
# to working version of every other component. | ||
ORGANIZATION=splunk | ||
PROJECT=splunk-connect-for-kubernetes | ||
BRANCH=$1 | ||
|
||
# Trigger functional test | ||
curl -X POST --header "Content-Type: application/json" \ | ||
-d '{"build_parameters": {"CIRCLE_JOB":"build_test", "TRIG_BRANCH":"'"$CIRCLE_BRANCH"'", "TRIG_PROJECT":"'"$CIRCLE_PROJECT_REPONAME"'", "TRIG_REPO":"'"$CIRCLE_REPOSITORY_URL"'"}}' "https://circleci.com/api/v1/project/$ORGANIZATION/$PROJECT/tree/$BRANCH?circle-token=$CIRCLE_TOKEN" > build.json | ||
cat build.json | ||
BUILD_NUM=$(jq -r .build_num build.json) | ||
|
||
# Wait until finish or maximum 20 minutes | ||
TIMEOUT=20 | ||
DONE="FALSE" | ||
until [ "$TIMEOUT" -lt 0 ] || [ "$DONE" == "TRUE" ]; do | ||
curl -s https://circleci.com/api/v1/project/$ORGANIZATION/$PROJECT/$BUILD_NUM?circle-token=$CIRCLE_TOKEN > build_progress.json | ||
STATUS=$(jq -r .status build_progress.json) | ||
echo "STATUS = $STATUS" | ||
if [ "$STATUS" != "running" ] && [ "$STATUS" != "queued" ]; then | ||
DONE="TRUE" | ||
else | ||
let TIMEOUT-- | ||
sleep 60 | ||
fi | ||
done | ||
|
||
BUILD_URL=$(jq -r .build_url build_progress.json) | ||
if [ "$DONE" == "FALSE" ]; then | ||
# Cancel hanging job and fail | ||
curl -X POST https://circleci.com/api/v1/project/$ORGANIZATION/$PROJECT/$BUILD_NUM/cancel?circle-token=$CIRCLE_TOKEN | ||
else | ||
if [ "$STATUS" != "success" ] && [ "$STATUS" != "fixed" ]; then | ||
echo "Functional test have failed please see:" | ||
echo $BUILD_URL | ||
exit 1 | ||
fi | ||
exit 0 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,7 @@ | |
*.gem | ||
.DS_Store | ||
*.aes | ||
docker/licenses/ | ||
docker/gem/ | ||
docker/gems/ | ||
docker/.bundle/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.1.2 | ||
1.1.3 |
Oops, something went wrong.