Skip to content

Commit ac2ca5e

Browse files
committed
refactor(version): remove version parameter
In order to keep the script as simple as possible, we only offer installation of the last Develocity version
1 parent 81011d2 commit ac2ca5e

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

AWS/EC2/ec2-install.sh

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ trap cleanup SIGINT SIGTERM ERR EXIT
1818
# --- Variables ---
1919
INSTALL_K3S_VERSION=${INSTALL_K3S_VERSION:-"v1.32.3+k3s1"}
2020
DV_CHART_REGISTRY_URL=${DV_CHART_REGISTRY_URL:-"https://helm.gradle.com/"}
21-
DV_VERSION=${DV_VERSION:-"2025.1.0"}
22-
Script_Version="0.1"
21+
SCRIPT_VERSION="0.1"
2322

2423
# Log File
2524
LOGFILE="$(pwd)/install_$(date +'%Y%m%d_%H%M%S').log"
@@ -108,23 +107,6 @@ echo -e "${YELLOW}-u, --uninstall${NOFORMAT} Uninstall Develocity Platform"
108107
exit
109108
}
110109

111-
# --- Validation functions ---
112-
# Check if the script is running as root
113-
# This is not used at the moment.
114-
#validateSudo () {
115-
# local OS_TYPE=$(uname)
116-
# if [ "$OS_TYPE" == "Linux" ] && [ $EUID -ne 0 ]; then
117-
# exitError "This script must be run as root or with sudo."
118-
# elif [ "$OS_TYPE" != "Linux" ]; then
119-
# exitError "This script is only supported on Linux."
120-
# fi
121-
122-
# local ARCHITECTURE=$(uname -m)
123-
# if [ "$ARCHITECTURE" != "x86_64" ]; then
124-
# exitError "This script is only supported on x86_64 architecture."
125-
# fi
126-
#}
127-
128110
# Check if the OS is Linux and x86_64
129111
validateOS () {
130112
local OS_TYPE
@@ -270,7 +252,6 @@ installPlatformChart(){
270252
helm repo add gradle "${baseUrl}" && \
271253
helm repo update && \
272254
helm install \
273-
--version "${DV_VERSION}" \
274255
--create-namespace --namespace develocity \
275256
ge-standalone \
276257
gradle/gradle-enterprise-standalone \

0 commit comments

Comments
 (0)