Requeue Samples
Code Example
Step 1. Get Sample Nodes
def getSampleNodes(sampleList, hostname, username, password){
sampleURIList = sampleList.collect{"${hostname}v2/artifacts/${it}"}
return GLSRestApiUtils.batchGET(sampleURIList, username, password)
}Step 2. Retrieve Workflow and Stage URIs
encodedWorkflowName = java.net.URLEncoder.encode(workflowName, "UTF-8")
try {
workflowURI = GLSRestApiUtils.httpGET\
("${hostname}v2/configuration/workflows?name=${encodedWorkflowName}", username, password).workflow.@uri[0]
if (!workflowURI) {
throw new Exception()
}
} catch (Exception e) {
println "Unable to find workflow: " + workflowName
System.exit(-1)
}Step 3. Verify Each Sample Meets the Requeue Criteria
Step 4. Check and Retrieve Workflow Stage for Sample Node
Step 5. Build the XML Assignment
Configuring and Running the Automation

Expected Output and Results

Attachments
Last updated
Was this helpful?


