File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 66# Note: The environment variable NEO4J_INITIAL_PASSWORD is required to login to Neo4j.
77
88JQASSISTANT_CLI_VERSION=${JQASSISTANT_CLI_VERSION:- " 1.12.2" } # Version 1.12.2 is the current version (april 2023)
9+ JQASSISTANT_CLI_ARTIFACT=${JQASSISTANT_CLI_ARTIFACT:- " jqassistant-commandline-neo4jv3" } # Neo4j v5: "jqassistant-commandline-distribution", Neo4j v4: "jqassistant-commandline-neo4jv3"
910
1011NEO4J_EDITION=${NEO4J_EDITION:- " community" } # Choose "community" or "enterprise"
1112NEO4J_VERSION=${NEO4J_VERSION:- " 4.4.20" } # Version 4.4.x is the current long term support (LTS) version (april 2023)
@@ -16,7 +17,7 @@ ARTIFACTS_DIRECTORY=${ARTIFACTS_DIRECTORY:-"artifacts"} # Directory with the Jav
1617TOOLS_DIRECTORY=${TOOLS_DIRECTORY:- " tools" } # Get the tools directory (defaults to "tools")
1718
1819# Internal constants
19- JQASSISTANT_BIN=" ${TOOLS_DIRECTORY} /jqassistant-commandline-neo4jv3 -${JQASSISTANT_CLI_VERSION} /bin"
20+ JQASSISTANT_BIN=" ${TOOLS_DIRECTORY} /${JQASSISTANT_CLI_ARTIFACT} -${JQASSISTANT_CLI_VERSION} /bin"
2021JQASSISTANT_NEO4J_OPTIONS=" -storeUri ${NEO4J_BOLT_URI} -storeUsername ${NEO4J_USER} -storePassword ${NEO4J_INITIAL_PASSWORD} "
2122
2223# Check if environment variable is set
Original file line number Diff line number Diff line change 3333fi
3434
3535# Internal constants
36- JQASSISTANT_INSTALLATION_NAME=" jqassistant-commandline-neo4jv3 -${JQASSISTANT_CLI_VERSION} "
36+ JQASSISTANT_INSTALLATION_NAME=" ${JQASSISTANT_CLI_ARTIFACT} -${JQASSISTANT_CLI_VERSION} "
3737JQASSISTANT_INSTALLATION_DIRECTORY=" ${TOOLS_DIRECTORY} /${JQASSISTANT_INSTALLATION_NAME} "
3838
3939# Download and unpack jQAssistant
@@ -46,8 +46,6 @@ if [ ! -d "${JQASSISTANT_INSTALLATION_DIRECTORY}" ] ; then
4646
4747 # Download jQAssistant
4848 # With the option "-L" a redirection will be followed automatically
49- # old: https://repo1.maven.org/maven2/com/buschmais/jqassistant/cli/jqassistant-commandline-neo4jv3/1.12.2/jqassistant-commandline-neo4jv3-1.12.2-distribution.zip
50- # new: https://repo1.maven.org/maven2/com/buschmais/jqassistant/cli/jqassistant-commandline-distribution/2.0.3/jqassistant-commandline-distribution-2.0.3-bin.zip
5149 curl -L --fail-with-body -o " ${SHARED_DOWNLOADS_DIRECTORY} /${JQASSISTANT_INSTALLATION_NAME} .zip" " ${jqassistant_cli_fulldownload_url} "
5250 else
5351 echo " setupJQAssistant: ${JQASSISTANT_INSTALLATION_NAME} already downloaded"
@@ -56,7 +54,7 @@ if [ ! -d "${JQASSISTANT_INSTALLATION_DIRECTORY}" ] ; then
5654 downloaded_file_size=$( wc -c " ${SHARED_DOWNLOADS_DIRECTORY} /${JQASSISTANT_INSTALLATION_NAME} .zip" | awk ' {print $1}' )
5755 echo " setupJQAssistant: Downloadsize ${downloaded_file_size} "
5856 if [[ " ${downloaded_file_size} " -le 1000 ]]; then
59- echo " setupJQAssistant: Failed to download ${JQASSISTANT_INSTALLATION_NAME} : Invalid Filesize"
57+ echo " setupJQAssistant: Error: Failed to download ${JQASSISTANT_INSTALLATION_NAME} . Invalid Filesize"
6058 rm -f " ${SHARED_DOWNLOADS_DIRECTORY} /${JQASSISTANT_INSTALLATION_NAME} .zip"
6159 exit 1
6260 fi
You can’t perform that action at this time.
0 commit comments