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

Fix message error for no variables found #319

Closed medamineziraoui closed 4 years ago

medamineziraoui commented 4 years ago

Issue in question: https://github.com/saagie/gradle-saagie-dataops-plugin/issues/301

This PR target to fix logging that will be shown in case we request environment variable of type project and we get empty list in response.

In this case We need to Add warning message that shows:

WARNING: No environment variable found on the targeted platform with scope project

Change error message from :

Previous message : jobs, pipelines and variables to be exported cannot be empty at the same time, and cannot generate zip file

To fix:

Cannot generate zip file

In case we export other artifacts like jobs or pipelines with envionmnent variables then we need to only show the warning message with the successful logging message