Skip to content

Commit c618604

Browse files
authored
This uses key value instead of list of strings (#13)
1 parent 6b4f3c0 commit c618604

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ steps:
2323
- label: "Deploy to Production"
2424
command: "./deploy.sh"
2525
plugins:
26-
- Jellyfish-AI/jellyfish#v1.0.7:
26+
- Jellyfish-AI/jellyfish#v1.0.8:
2727
webhook-url: "https://webhooks.jellyfish.co/deployment"
2828
api-token: "${JELLYFISH_API_TOKEN}"
2929
name: "production-deployment"
@@ -97,15 +97,15 @@ The plugin requires the following tools to be available on your Buildkite agents
9797
### Basic Usage
9898
```yaml
9999
plugins:
100-
- Jellyfish-AI/jellyfish#v1.0.7:
100+
- Jellyfish-AI/jellyfish#v8:
101101
webhook-url: "https://webhooks.jellyfish.co/deployment"
102102
api-token: "${JELLYFISH_API_TOKEN}"
103103
```
104104

105105
### Advanced Usage with Custom Labels
106106
```yaml
107107
plugins:
108-
- Jellyfish-AI/jellyfish#v1.0.7:
108+
- Jellyfish-AI/jellyfish#v1.0.8:
109109
webhook-url: "https://webhooks.jellyfish.co/deployment"
110110
api-token: "${JELLYFISH_API_TOKEN}"
111111
name: "api-service-production"
@@ -123,7 +123,7 @@ steps:
123123
- label: "Deploy to Staging"
124124
command: "./deploy.sh staging"
125125
plugins:
126-
- Jellyfish-AI/jellyfish#v1.0.7:
126+
- Jellyfish-AI/jellyfish#v1.0.8:
127127
webhook-url: "https://webhooks.jellyfish.co/deployment"
128128
api-token: "${JELLYFISH_API_TOKEN}"
129129
name: "staging-deployment"
@@ -134,7 +134,7 @@ steps:
134134
- label: "Deploy to Production"
135135
command: "./deploy.sh production"
136136
plugins:
137-
- Jellyfish-AI/jellyfish#v1.0.7:
137+
- Jellyfish-AI/jellyfish#v1.0.8:
138138
webhook-url: "https://webhooks.jellyfish.co/deployment"
139139
api-token: "${JELLYFISH_API_TOKEN}"
140140
name: "production-deployment"

example-pipeline.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ steps:
2626
# Your deployment commands here
2727
./deploy.sh staging
2828
plugins:
29-
- Jellyfish-AI/jellyfish#v1.0.7:
29+
- Jellyfish-AI/jellyfish#v1.0.8:
3030
webhook-url: "https://webhooks.jellyfish.co/deployment"
3131
api-token: "${JELLYFISH_API_TOKEN}"
3232
name: "staging-deployment"
@@ -43,7 +43,7 @@ steps:
4343
# Your production deployment commands here
4444
./deploy.sh production
4545
plugins:
46-
- Jellyfish-AI/jellyfish#v1.0.7:
46+
- Jellyfish-AI/jellyfish#v1.0.8:
4747
webhook-url: "https://webhooks.jellyfish.co/deployment"
4848
api-token: "${JELLYFISH_API_TOKEN}"
4949
name: "production-deployment"

hooks/post-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ WEBHOOK_URL="${BUILDKITE_PLUGIN_JELLYFISH_WEBHOOK_URL:-}"
1717
API_TOKEN="${BUILDKITE_PLUGIN_JELLYFISH_API_TOKEN:-}"
1818

1919
# Process labels: Buildkite passes array options as a space-separated string.
20-
# We use 'jq' to convert this into a proper JSON array.
20+
# We convert this into a JSON array of "key:value" strings for Jellyfish.
2121
LABELS_JSON_ARRAY="[]"
2222
if [ -n "${BUILDKITE_PLUGIN_JELLYFISH_LABELS:-}" ]; then
23+
# Convert space-separated labels to array of strings in "key:value" format
2324
LABELS_JSON_ARRAY=$(echo "$BUILDKITE_PLUGIN_JELLYFISH_LABELS" | jq -R -s 'split(" ") | map(select(length > 0))')
2425
fi
2526

post-command.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ WEBHOOK_URL="${BUILDKITE_PLUGIN_JELLYFISH_WEBHOOK_URL:-}"
1717
API_TOKEN="${BUILDKITE_PLUGIN_JELLYFISH_API_TOKEN:-}"
1818

1919
# Process labels: Buildkite passes array options as a space-separated string.
20-
# We use 'jq' to convert this into a proper JSON array.
20+
# We convert this into a JSON array of "key:value" strings for Jellyfish.
2121
LABELS_JSON_ARRAY="[]"
2222
if [ -n "${BUILDKITE_PLUGIN_JELLYFISH_LABELS:-}" ]; then
23+
# Convert space-separated labels to array of strings in "key:value" format
2324
LABELS_JSON_ARRAY=$(echo "$BUILDKITE_PLUGIN_JELLYFISH_LABELS" | jq -R -s 'split(" ") | map(select(length > 0))')
2425
fi
2526

0 commit comments

Comments
 (0)