Skip to content

Commit

Permalink
ci: fix download url for Splunk >= 9.4 (#425)
Browse files Browse the repository at this point in the history
Splunk 9.4 introduced a change in package name (see [Slack
thread](https://splunk.slack.com/archives/C9YN6R66A/p1736523466831319)),
from:
`splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-x86_64.tgz`
to
`splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-linux-amd64.tgz`
  • Loading branch information
kkedziak-splunk authored Jan 22, 2025
1 parent 70102a9 commit 936572f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,20 @@ jobs:
export SPLUNK_VERSION=${{ matrix.splunk.version }}
export SPLUNK_BUILD=${{ matrix.splunk.build }}
export SPLUNK_SLUG=$SPLUNK_VERSION-$SPLUNK_BUILD
export SPLUNK_ARCH=x86_64
export SPLUNK_LINUX_FILENAME=splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
export SPLUNK_ARCH=amd64
export SPLUNK_LINUX_FILENAME=splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-linux-${SPLUNK_ARCH}.tgz
# Before 9.4, the filename was splunk-<version>-<build>-Linux-x86_64.tgz
if [[ $(echo $SPLUNK_VERSION | cut -d. -f1) -le 8 ]] || \
[[ $SPLUNK_VERSION == 9.0.* ]] || \
[[ $SPLUNK_VERSION == 9.1.* ]] || \
[[ $SPLUNK_VERSION == 9.2.* ]] || \
[[ $SPLUNK_VERSION == 9.3.* ]]
then
export SPLUNK_ARCH=x86_64
export SPLUNK_LINUX_FILENAME=splunk-${SPLUNK_VERSION}-${SPLUNK_BUILD}-Linux-${SPLUNK_ARCH}.tgz
fi
export SPLUNK_BUILD_URL=https://download.splunk.com/products/${SPLUNK_PRODUCT}/releases/${SPLUNK_VERSION}/linux/${SPLUNK_LINUX_FILENAME}
echo "$SPLUNK_BUILD_URL"
export SPLUNK_HOME=/opt/splunk
Expand Down

0 comments on commit 936572f

Please sign in to comment.