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

Add versions logs to task response #262

Closed medamineziraoui closed 4 years ago

medamineziraoui commented 4 years ago

Why ?

We want to add anthe number of imported versions in the log response from export task.

Links / Ressources

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

Actual status / Investigations

The successful task response show only the name of the job or pipeline imported like shown here if we have a zip artifact that contain a job exported with use projectsImport. Same for pipelines.

job=[{id=4708, name=pm Extraction batch PLCs, versions=3}] pipeline=[{id=484, name=pipeline-name, versions=3}]

How? in the response with condition if versions.size() > 0 then add those changes to client importArtifacts

response.job << [
  versions: versions.size()
]
response.pipeline << [
  versions: versions.size()
]