You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by we...@apache.org on 2020/04/08 19:50:53 UTC
[arrow] 01/01: Add buildkite/bash-example files for testing
This is an automated email from the ASF dual-hosted git repository.
wesm pushed a commit to branch buildkite-test
in repository https://gitbox.apache.org/repos/asf/arrow.git
commit 4f06009d39ce06cec28fcec59e655ed38215fc7c
Author: Wes McKinney <we...@apache.org>
AuthorDate: Wed Apr 8 14:50:23 2020 -0500
Add buildkite/bash-example files for testing
---
.buildkite/hooks/post-command | 1 +
.buildkite/hooks/pre-command | 1 +
.buildkite/pipeline.yml | 6 ++++++
.buildkite/template.yml | 5 +++++
artifacts/image.gif | Bin 0 -> 585904 bytes
artifacts/thumbsup.txt | 24 ++++++++++++++++++++++++
script.sh | 32 ++++++++++++++++++++++++++++++++
7 files changed, 69 insertions(+)
diff --git a/.buildkite/hooks/post-command b/.buildkite/hooks/post-command
new file mode 100755
index 0000000..488b131
--- /dev/null
+++ b/.buildkite/hooks/post-command
@@ -0,0 +1 @@
+echo "This is an example of a post-command hook from .buildkite/hooks/post-command"
diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command
new file mode 100755
index 0000000..07f0ee7
--- /dev/null
+++ b/.buildkite/hooks/pre-command
@@ -0,0 +1 @@
+echo "This is an example of a pre-command hook from .buildkite/hooks/pre-command"
diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml
new file mode 100644
index 0000000..6179f83
--- /dev/null
+++ b/.buildkite/pipeline.yml
@@ -0,0 +1,6 @@
+steps:
+ - label: ":hammer: Example Script"
+ command: "script.sh"
+ artifact_paths: "artifacts/*"
+ agents:
+ queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
diff --git a/.buildkite/template.yml b/.buildkite/template.yml
new file mode 100644
index 0000000..4869a99
--- /dev/null
+++ b/.buildkite/template.yml
@@ -0,0 +1,5 @@
+name: "Bash Example"
+description: "An example repository you can use as a test project with Buildkite"
+steps:
+ - command: "buildkite-agent pipeline upload"
+ label: ":pipeline:"
diff --git a/artifacts/image.gif b/artifacts/image.gif
new file mode 100644
index 0000000..f6a3ef6
Binary files /dev/null and b/artifacts/image.gif differ
diff --git a/artifacts/thumbsup.txt b/artifacts/thumbsup.txt
new file mode 100644
index 0000000..01ea652
--- /dev/null
+++ b/artifacts/thumbsup.txt
@@ -0,0 +1,24 @@
+ $$$$
+ $$__$
+ $___$$
+ $___$$
+ $$___$$
+ $____$$
+ $$____$$$
+ $$_____$$
+ $$______$$
+ $_______$$
+ $$$$$$$________$$
+ $$$_______________$$$$$$
+ $$____$$$$____________$$$
+ $___$$$__$$$____________$$
+ $$________$$$____________$
+ $$____$$$$$$____________$
+ $$$$$$$____$$___________$
+ $$_______$$$$___________$
+ $$$$$$$$$__$$_________$$
+ $________$$$$_____$$$$
+ $$____$$$$$$____$$$$$$
+ $$$$$$____$$__$$
+ $_____$$$_$$$
+ $$$$$$$$$$
\ No newline at end of file
diff --git a/script.sh b/script.sh
new file mode 100755
index 0000000..a41a0c4
--- /dev/null
+++ b/script.sh
@@ -0,0 +1,32 @@
+set -eo pipefail
+
+echo "--- :package: Build job checkout directory"
+
+pwd
+ls -la
+
+
+echo "--- :evergreen_tree: Build job environment"
+
+env
+
+
+echo "+++ :hammer: Example tests"
+
+echo -e "\033[33mCongratulations!\033[0m You've successfully run your first build on Buildkite! 👍
+
+\033[33m$(cat artifacts/thumbsup.txt)\033[0m
+
+If you have any questions or need help email support@buildkite.com, we'd be happy to help!
+
+\033[31m<3\033[0m Buildkite
+"
+
+
+echo "+++ :frame_with_picture: Inline image uploaded as a build artifact"
+
+function inline_image {
+ printf '\033]1338;url='"$1"';alt='"$2"'\a\n'
+}
+
+inline_image 'artifact://artifacts/image.gif' 'Rainbows'