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

Init fix log error for projectsImport #263

Closed medamineziraoui closed 4 years ago

medamineziraoui commented 4 years ago

Why ?

We want to fix response of the projectsImport task if zip file is invalide.

Links / Ressources

https://github.com/saagie/gradle-saagie-dataops-plugin/issues/258

Important

I NEED MERGE https://github.com/saagie/gradle-saagie-dataops-plugin/pull/267 SO I CAN WORK THIS ISSUE

Actual status / Investigations

If we use the projectsImport task with invalide zip artifact we get and error and successful message

An error occurred when unzipping the artifacts export file.
{status=success, job=[], pipeline=[]} 

How?

We wrap the code of importJob methode with a

tryCatchClosure({
... code contain        
    }, 'importJob', 'projectsImport')