Skip to content

Commit 5ad2384

Browse files
committed
cicd: Do not fail on missing dependencies. #TASK-7809
1 parent f078024 commit 5ad2384

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/scripts/prepare_hadoop.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ function main() {
2121
shift # past argument
2222
shift # past value
2323
;;
24+
--verbose)
25+
set -x
26+
shift # past key
27+
;;
2428
*) # unknown option
2529
echo "Unknown option $key"
2630
return 1
@@ -33,8 +37,7 @@ function main() {
3337
fi
3438

3539
# Check if HADOOP_THIRDPARTY can be download
36-
mvn dependency:get "-Dartifact=org.opencb.opencga.hadoop.thirdparty:opencga-hadoop-shaded-${HADOOP_FLAVOUR}:${HADOOP_THIRDPARTY_VERSION}" &> /dev/null
37-
if [ $? -eq 0 ]; then
40+
if mvn dependency:get "-Dartifact=org.opencb.opencga.hadoop.thirdparty:opencga-hadoop-shaded-${HADOOP_FLAVOUR}:${HADOOP_THIRDPARTY_VERSION}" &> /dev/null; then
3841
echo "Hadoop thirdparty jar found in remote maven repository."
3942
return 0;
4043
fi
@@ -92,7 +95,7 @@ function install(){
9295
if [[ -n "${THIRDPARTY_READ_TOKEN:-}" ]]; then
9396
CLONE_URL="https://x-access-token:${THIRDPARTY_READ_TOKEN}@github.com/opencb/${REPO}.git"
9497
else
95-
CLONE_URL="https://github.com/opencb/${REPO}.git"
98+
CLONE_URL="git@github.com:opencb/${REPO}.git"
9699
fi
97100

98101
# Shallow clone at the requested ref

0 commit comments

Comments
 (0)