DO-103_eva_api_class (#10)
Reviewed-on: https://git.avroid.tech/DevOps/jenkins-shared-lib/pulls/10 Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech> Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
committed by
Aleksandr Vodyanov
parent
86740d0fb5
commit
2c65da730e
@@ -27,9 +27,8 @@ class Eva implements Serializable {
|
||||
* @param parentId String - id of Object for which created link
|
||||
* @param linkName String - name of link
|
||||
* @param url String - full url of link
|
||||
* @return Boolean - success or failure create
|
||||
*/
|
||||
public createLink(String parentId, String linkName, String url) {
|
||||
public void createLink(String parentId, String linkName, String url) {
|
||||
Map body = [
|
||||
jsonrpc: "1.2",
|
||||
method: "CmfLink.create",
|
||||
@@ -59,8 +58,12 @@ class Eva implements Serializable {
|
||||
*/
|
||||
public String getTaskId(String filterValue, String filterParam = "code") {
|
||||
String response = getTask(filterValue, filterParam)
|
||||
Object result = new JsonSlurper().parseText(response).result
|
||||
|
||||
return new JsonSlurper().parseText(response).result.id
|
||||
if (result) {
|
||||
return result.id
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user