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

Fix CI unit uploadInputBag

parent 33993f75
2 merge requests!58Develop,!53Resolve "process_derivaUpload"
Pipeline #8419 failed with stages
in 1 minute and 32 seconds
...@@ -295,7 +295,7 @@ uploadInputBag: ...@@ -295,7 +295,7 @@ uploadInputBag:
- 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://${source}/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\": \".*\"')
......
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