Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

Commit

Permalink
create asclepios-pipeline
Browse files Browse the repository at this point in the history
and move all asclepios realted functionality to the new pipeline
  • Loading branch information
jmz-b committed Apr 9, 2020
1 parent 234263b commit e9bab76
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 17 deletions.
43 changes: 43 additions & 0 deletions resources/catalog/asclepios-pipeline/asclepios-pipeline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<Pipeline xmlns="http://nrg.wustl.edu/pipeline" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:nrgString="java:org.nrg.pipeline.utils.StringUtils" xsi:schemaLocation="http://nrg.wustl.edu/pipeline ../schema/pipeline.xsd">
<name>asclepios-pipeline</name>
<location>asclepios-pipeline</location>
<description>Pipeline for use with ASCLEPIOS crypto services</description>
<documentation>
<input-parameters>
<parameter>
<name>xnatID</name>
<values>
<schemalink>xnat:imageSessionData/ID</schemalink>
</values>
<description>The XNAT session ID</description>
</parameter>
</input-parameters>
</documentation>
<parameters>
<parameter>
<name>workdir</name>
<values>
<unique>^concat(/Pipeline/parameters/parameter[name='builddir']/values/unique/text(),'/',/Pipeline/parameters/parameter[name='label']/values/unique/text())^</unique>
</values>
</parameter>
</parameters>
<steps>
<step id="0" description="Upload EDF metadata to the ASCLEPIOS symmetric searchable encryption service" workdirectory="^/Pipeline/parameters/parameter[name='workdir']/values/unique/text()^">
<resource name="upload_to_sse.xml" location="asclepios-pipeline/resources">
<argument id="xnatID">
<value>^/Pipeline/parameters/parameter[name='xnatID']/values/unique/text()^</value>
</argument>
<argument id="host">
<value>^if (count(/Pipeline/parameters/parameter[name='aliasHost']/values) > 0) then /Pipeline/parameters/parameter[name='aliasHost']/values/unique/text() else /Pipeline/parameters/parameter[name='host']/values/unique/text()^</value>
</argument>
<argument id="user">
<value>^/Pipeline/parameters/parameter[name='user']/values/unique/text()^</value>
</argument>
<argument id="pwd">
<value>^/Pipeline/parameters/parameter[name='pwd']/values/unique/text()^</value>
</argument>
</resource>
</step>
</steps>
</Pipeline>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<pip:Resource xmlns:pip="http://nrg.wustl.edu/pipeline">
<pip:name>upload_to_sse</pip:name>
<pip:location>somnonetz-pipeline/bin</pip:location>
<pip:location>asclepios-pipeline/bin</pip:location>
<pip:type>Executable</pip:type>
<pip:description>Upload EDF metadata to the ASCLEPIOS symmetric searchable encryption service</pip:description>
<pip:input>
Expand Down
16 changes: 0 additions & 16 deletions resources/catalog/somnonetz-pipeline/somnonetz-pipeline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,5 @@
</argument>
</resource>
</step>
<step id="1" description="Upload EDF metadata to the ASCLEPIOS symmetric searchable encryption service" workdirectory="^/Pipeline/parameters/parameter[name='workdir']/values/unique/text()^">
<resource name="upload_to_sse.xml" location="somnonetz-pipeline/resources">
<argument id="xnatID">
<value>^/Pipeline/parameters/parameter[name='xnatID']/values/unique/text()^</value>
</argument>
<argument id="host">
<value>^if (count(/Pipeline/parameters/parameter[name='aliasHost']/values) > 0) then /Pipeline/parameters/parameter[name='aliasHost']/values/unique/text() else /Pipeline/parameters/parameter[name='host']/values/unique/text()^</value>
</argument>
<argument id="user">
<value>^/Pipeline/parameters/parameter[name='user']/values/unique/text()^</value>
</argument>
<argument id="pwd">
<value>^/Pipeline/parameters/parameter[name='pwd']/values/unique/text()^</value>
</argument>
</resource>
</step>
</steps>
</Pipeline>

0 comments on commit e9bab76

Please sign in to comment.