Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .lagoon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
Comment thread
coderabbitai[bot] marked this conversation as resolved.
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=pre_deployment
Expand Down Expand Up @@ -92,6 +95,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=post_deployment
Expand Down
25 changes: 25 additions & 0 deletions .vortex/docs/content/workflows/notifications.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,31 @@ channel-specific settings.
| `VORTEX_NOTIFY_PROJECT` | No | `VORTEX_PROJECT` | `.env` | Notification project name |
| `VORTEX_NOTIFY_SKIP` | No | | Hosting | Notification skip flag (set to `1` to skip notifications) |

## Deployment context variables

These variables provide deployment context information used by notification
channels. They must be set by the hosting environment (e.g., Lagoon, Acquia)
before calling the notification script.

| Variable | Required | Description |
|---------------------------|----------|-----------------------------------------------------------------|
| `VORTEX_NOTIFY_BRANCH` | **Yes** | Git branch name (used for GitHub API and JIRA issue extraction) |
| `VORTEX_NOTIFY_SHA` | **Yes** | Git commit SHA (used for New Relic revision tracking) |
| `VORTEX_NOTIFY_PR_NUMBER` | No | Pull request number (empty for branch deployments) |
| `VORTEX_NOTIFY_LABEL` | **Yes** | Human-readable deployment label for display |

### Branch vs PR deployment examples

The following table shows how these variables differ between branch and PR deployments:

| Variable | Branch deployment | PR deployment |
|----------------------------|-----------------------------|-----------------------------------|
| `VORTEX_NOTIFY_BRANCH` | `main` | `feature/PROJ-123-add-feature` |
| `VORTEX_NOTIFY_SHA` | `abc123def456` | `def789abc012` |
| `VORTEX_NOTIFY_PR_NUMBER` | *(empty)* | `123` |
| `VORTEX_NOTIFY_LABEL` | `main` | `PR-123` |


## Message templates and tokens

Most notification channels support customizable message templates using replacement tokens:
Expand Down
15 changes: 10 additions & 5 deletions .vortex/docs/content/workflows/variables.mdx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set -e
site="${1}"
target_env="${2}"
branch="${3}"
ref="${4}"

# Custom domain name for the environment, including subdomain.
# Examples: "dev.example.com", "test.example.com", "www.example.com"
Expand All @@ -25,6 +26,9 @@ if [ -n "${VORTEX_NOTIFY_ENVIRONMENT_DOMAIN}" ]; then
fi

export VORTEX_NOTIFY_PROJECT="${site}"
export VORTEX_NOTIFY_BRANCH="${branch}"
export VORTEX_NOTIFY_SHA="${ref}"
export VORTEX_NOTIFY_PR_NUMBER=""
export VORTEX_NOTIFY_LABEL="${branch}"
export VORTEX_NOTIFY_ENVIRONMENT_URL="${url}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=pre_deployment
Expand Down Expand Up @@ -77,6 +80,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=post_deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set -e
site="${1}"
target_env="${2}"
branch="${3}"
ref="${4}"

# Custom domain name for the environment, including subdomain.
# Examples: "dev.example.com", "test.example.com", "www.example.com"
Expand All @@ -25,6 +26,9 @@ if [ -n "${VORTEX_NOTIFY_ENVIRONMENT_DOMAIN}" ]; then
fi

export VORTEX_NOTIFY_PROJECT="${site}"
export VORTEX_NOTIFY_BRANCH="${branch}"
export VORTEX_NOTIFY_SHA="${ref}"
export VORTEX_NOTIFY_PR_NUMBER=""
export VORTEX_NOTIFY_LABEL="${branch}"
export VORTEX_NOTIFY_ENVIRONMENT_URL="${url}"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=pre_deployment
Expand Down Expand Up @@ -77,6 +80,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=post_deployment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=pre_deployment
Expand Down Expand Up @@ -77,6 +80,9 @@ tasks:
command: |
export VORTEX_NOTIFY_PROJECT=$LAGOON_PROJECT
export VORTEX_NOTIFY_ENVIRONMENT_URL=$LAGOON_ROUTE
export VORTEX_NOTIFY_BRANCH="${LAGOON_PR_HEAD_BRANCH:-$LAGOON_GIT_BRANCH}"
export VORTEX_NOTIFY_SHA="${LAGOON_GIT_SHA}"
export VORTEX_NOTIFY_PR_NUMBER="${LAGOON_PR_NUMBER:-}"
export VORTEX_NOTIFY_LABEL="$LAGOON_GIT_BRANCH"
[ -n "$LAGOON_PR_NUMBER" ] && export VORTEX_NOTIFY_LABEL="PR-${LAGOON_PR_NUMBER}"
export VORTEX_NOTIFY_EVENT=post_deployment
Expand Down
15 changes: 12 additions & 3 deletions .vortex/tests/bats/unit/notify-email.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_PROJECT="testproject"
export DRUPAL_SITE_EMAIL="testproject@example.com"
export VORTEX_NOTIFY_EMAIL_RECIPIENTS="john@example.com|John Doe, jane@example.com|Jane Doe, jim@example.com"
export VORTEX_NOTIFY_BRANCH="develop"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -40,7 +42,10 @@ load ../_helper.bash
export VORTEX_NOTIFY_PROJECT="testproject"
export DRUPAL_SITE_EMAIL="testproject@example.com"
export VORTEX_NOTIFY_EMAIL_RECIPIENTS="john@example.com|John Doe, jane@example.com|Jane Doe"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_BRANCH="feature/my-pr-branch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_PR_NUMBER="123"
export VORTEX_NOTIFY_LABEL="PR-123"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
assert_success
Expand All @@ -51,8 +56,8 @@ load ../_helper.bash
assert_output_contains "Notification email(s) sent to: john@example.com, jane@example.com"
assert_output_contains "Finished email notification."

assert_output_contains 'testproject deployment notification of develop'
assert_output_contains 'Site testproject develop has been deployed'
assert_output_contains 'testproject deployment notification of PR-123'
assert_output_contains 'Site testproject PR-123 has been deployed'
assert_output_contains "and is available at https://develop.testproject.com."

assert_output_contains "Finished dispatching notifications."
Expand All @@ -68,6 +73,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_PROJECT="testproject"
export DRUPAL_SITE_EMAIL="testproject@example.com"
export VORTEX_NOTIFY_EMAIL_RECIPIENTS="john@example.com"
export VORTEX_NOTIFY_BRANCH="develop"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand All @@ -90,6 +97,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_PROJECT="test'); file_put_contents('/tmp/injected_email_test', 'HACKED'); //"
export DRUPAL_SITE_EMAIL="testproject@example.com"
export VORTEX_NOTIFY_EMAIL_RECIPIENTS="john@example.com"
export VORTEX_NOTIFY_BRANCH="develop"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://example.com"

Expand Down
21 changes: 19 additions & 2 deletions .vortex/tests/bats/unit/notify-github.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="pre_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="existingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
Comment thread
AlexSkrypnyk marked this conversation as resolved.
export VORTEX_NOTIFY_LABEL="existingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand All @@ -44,7 +46,7 @@ load ../_helper.bash
declare -a STEPS=(
"Started dispatching notifications."
"Started GitHub notification for pre_deployment event."
"@curl -X POST -H Authorization: token token12345 -H Accept: application/vnd.github.v3+json -s https://api.github.com/repos/myorg/myrepo/deployments -d {\"ref\":\"existingbranch\", \"environment\": \"PR\", \"auto_merge\": false, \"required_contexts\": []} # {\"id\": \"${app_id}\", \"othervar\": \"54321\"}"
"@curl -X POST -H Authorization: token token12345 -H Accept: application/vnd.github.v3+json -s https://api.github.com/repos/myorg/myrepo/deployments -d {\"ref\":\"feature/my-pr-branch\", \"environment\": \"PR\", \"auto_merge\": false, \"required_contexts\": []} # {\"id\": \"${app_id}\", \"othervar\": \"54321\"}"
"Marked deployment as started."
"Finished GitHub notification for pre_deployment event."
"Finished dispatching notifications."
Expand All @@ -56,7 +58,10 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="pre_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_LABEL="existingbranch"
export VORTEX_NOTIFY_BRANCH="feature/my-pr-branch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_PR_NUMBER="123"
export VORTEX_NOTIFY_LABEL="PR-123"
Comment thread
AlexSkrypnyk marked this conversation as resolved.
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
assert_success
Expand Down Expand Up @@ -86,6 +91,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="pre_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="existingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="existingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -114,6 +121,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="pre_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="nonexistingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="nonexistingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -145,6 +154,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="post_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="existingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="existingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -176,6 +187,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="post_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="existingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="existingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -205,6 +218,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="post_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="nonexistingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="nonexistingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -235,6 +250,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="post_deployment"
export VORTEX_NOTIFY_GITHUB_TOKEN="token12345"
export VORTEX_NOTIFY_GITHUB_REPOSITORY="myorg/myrepo"
export VORTEX_NOTIFY_BRANCH="existingbranch"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="existingbranch"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down
6 changes: 6 additions & 0 deletions .vortex/tests/bats/unit/notify-jira.bats
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_JIRA_USER_EMAIL="john.doe@example.com"
export VORTEX_NOTIFY_JIRA_TOKEN="token12345"
export VORTEX_NOTIFY_JIRA_PROJECT="PROJ"
export VORTEX_NOTIFY_BRANCH="feature/proj-1234-some-description"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="feature/proj-1234-some-description"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
export VORTEX_NOTIFY_LOGIN_URL="https://develop.testproject.com/user/login"
Expand All @@ -64,6 +66,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_JIRA_USER_EMAIL="john.doe@example.com"
export VORTEX_NOTIFY_JIRA_TOKEN="token12345"
export VORTEX_NOTIFY_JIRA_PROJECT="PROJ"
export VORTEX_NOTIFY_BRANCH="feature/proj-1234-some-description"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="feature/proj-1234-some-description"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://develop.testproject.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -101,6 +105,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_JIRA_USER_EMAIL="john.doe@example.com"
export VORTEX_NOTIFY_JIRA_TOKEN="token12345"
export VORTEX_NOTIFY_JIRA_PROJECT="test'); file_put_contents('/tmp/injected_jira_test', 'HACKED'); //"
export VORTEX_NOTIFY_BRANCH="feature/proj-1234-test"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="feature/proj-1234-test"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://example.com"

Expand Down
6 changes: 6 additions & 0 deletions .vortex/tests/bats/unit/notify-newrelic.bats
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_PROJECT="testproject"
export VORTEX_NOTIFY_NEWRELIC_USER_KEY="key1234"
export VORTEX_NOTIFY_EMAIL_RECIPIENTS="john@example.com|John Doe,jane@example.com|Jane Doe"
export VORTEX_NOTIFY_BRANCH="develop"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://test.example.com"

Expand Down Expand Up @@ -58,6 +60,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_EVENT="pre_deployment"
export VORTEX_NOTIFY_PROJECT="testproject"
export VORTEX_NOTIFY_NEWRELIC_USER_KEY="key1234"
export VORTEX_NOTIFY_BRANCH="develop"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://test.example.com"
run ./scripts/vortex/notify.sh
Expand Down Expand Up @@ -85,6 +89,8 @@ load ../_helper.bash
export VORTEX_NOTIFY_CHANNELS="newrelic"
export VORTEX_NOTIFY_PROJECT="test'); file_put_contents('/tmp/injected_newrelic_test', 'HACKED'); //"
export VORTEX_NOTIFY_NEWRELIC_USER_KEY="key1234"
export VORTEX_NOTIFY_BRANCH="develop"
export VORTEX_NOTIFY_SHA="abc123def456"
export VORTEX_NOTIFY_LABEL="develop"
export VORTEX_NOTIFY_ENVIRONMENT_URL="https://test.example.com"

Expand Down
Loading