Closed medamineziraoui closed 4 years ago
We want to add anthe number of imported versions in the log response from export task.
https://github.com/saagie/gradle-saagie-dataops-plugin/issues/257
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.
projectsImport
job=[{id=4708, name=pm Extraction batch PLCs, versions=3}] pipeline=[{id=484, name=pipeline-name, versions=3}]
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
versions.size() > 0
importArtifacts
response.job << [ versions: versions.size() ]
response.pipeline << [ versions: versions.size() ]
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 clientimportArtifacts