We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eff6ded commit 5d88af4Copy full SHA for 5d88af4
travis-build-scripts/build.sh
@@ -26,6 +26,14 @@ get_archive_level() {
26
level_path="${archive_level_cache_dir}/${archive_variable}.level"
27
28
if [[ ! -f "$level_path" ]]; then
29
+ if [[ -z "${REPOSITORY_USER}" || -z "${REPOSITORY_CREDENTIALS}" ]]; then
30
+ echo 'Skipping level lookup as repository credentials not set'
31
+ return
32
+ fi
33
+ if [[ -z "${!archive_variable}" ]]; then
34
+ echo "Skipping level lookup as '\$${archive_variable}' is not set"
35
36
37
./travis-build-scripts/artifact-util.sh -f "${!archive_variable}" -u "${REPOSITORY_USER}" -p "${REPOSITORY_CREDENTIAL}" -l "$level_path" -n snapshot --get-property
38
fi
39
read -r MQ_ARCHIVE_LEVEL < "$level_path"
0 commit comments