saagie / gradle-saagie-dataops-plugin

Saagie Gradle Plugin for the new version (2.0) of Saagie Dataops Orchestrator
Apache License 2.0
2 stars 0 forks source link

timeout not working for V1 #324

Open sgokaram-saagie opened 3 years ago

sgokaram-saagie commented 3 years ago

Task to export variables from V1 was timing out. Tried to increase by specifying the timeout value but its not working.

plugins { id "io.saagie.gradle-saagie-dataops-plugin" version "2.1.10" }

saagie { server { url = saagieurl login = saagieuserid password = saagiepassword environment = saagieplatformid jwt = true timeout = 20000 } env { include_all_var=true } exportArtifacts { export_file = "./env/v1.zip" overwrite=true temporary_directory='./tmp'
} }

OUTPUT saagies-mbp:Gradle shivakumar$ gradle -b build.gradle.projectExportEnvV1 projectExportV1

Task :projectsExportV1 FAILED Error in getListVariablesV1FromConfig timeout getAllVariablesFromV1 Request Error in getListVariablesV2FromConfig timeout getListVariablesV1FromConfig

FAILURE: Build failed with an exception.

BUILD FAILED in 23s 1 actionable task: 1 executed

medamineziraoui commented 3 years ago

How to test :

Version to test : 2.1.11

The Export phase:

Create a build file: Example of build.projectsExportV1.gradle:

plugins {
  id "io.saagie.gradle-saagie-dataops-plugin" version "2.1.11"
}
saagie {
    server {
        url = "REPLACE_SAAGIEURL" // <=== add unreachable server like - http://example.com:81
        login = "REPLACE_SAAGIELOGIN"
    password = "REPLACE_SAAGIEPASSWORD"
        environment = "REPLACE_SAAGIE"
    jwt = true
       timeout = 15 // <==== change the timeout
    }  
    ...
}

Export job using this commande : The command line : gradle -b build.projectsExportV1.gradle projectsExportV1 Job have to fail with the given timeout time

> Task :projectsExportV1 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':projectsExportV1'.
> java.net.ConnectException: Failed to connect to example.com/2606:2800:220:1:248:1893:25c8:1946:81

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 16s
1 actionable task: 1 executed
medamineziraoui commented 3 years ago

Tested version : 2.1.11 OK

![Uploading testtimeoutv1.gif…]()