Skip to content
Snippets Groups Projects
Commit 9f33ee56 authored by Gervaise Henry's avatar Gervaise Henry :cowboy:
Browse files

Fix CI unit uploadInputBag

parent c8efb567
Branches
Tags
2 merge requests!58Develop,!53Resolve "process_derivaUpload"
Pipeline #8423 failed with stages
in 1 minute and 32 seconds
...@@ -294,9 +294,9 @@ uploadInputBag: ...@@ -294,9 +294,9 @@ uploadInputBag:
fi fi
- echo THIS IS A TEST FILE > test.txt - echo THIS IS A TEST FILE > test.txt
- > - >
md5=$(md5sum ./test.txt | awk '{ print $1 }') md5=$(md5sum ./test.txt | awk '{ print $1 }') &&
size=$(wc -c < ./test.txt) size=$(wc -c < ./test.txt) &&
exist=$(singularity run 'docker://gudmaprbk/deriva1.3:1.0.0' curl -s https://dev.gudmap.org/ermrest/catalog/2/entity/RNASeq:Input_Bag/File_MD5=${md5}) exist=$(singularity run 'docker://gudmaprbk/deriva1.3:1.0.0' curl -s https://dev.gudmap.org/ermrest/catalog/2/entity/RNASeq:Input_Bag/File_MD5=${md5}) &&
if [ "${exist}" == "[]" ]; then if [ "${exist}" == "[]" ]; then
cookie=$(cat credential.json | grep -A 1 '\"dev.gudmap.org\": {' | grep -o '\"cookie\": \".*\"') cookie=$(cat credential.json | grep -A 1 '\"dev.gudmap.org\": {' | grep -o '\"cookie\": \".*\"')
cookie=${cookie:11:-1} cookie=${cookie:11:-1}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment