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

include jobs automaticaly when exporting pipeline from v1 #268

Closed medamineziraoui closed 4 years ago

medamineziraoui commented 4 years ago

Why ?

We want to make the option include_jobs set to true when imported from v1.

Links / Ressources

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

Actual status / Investigations

When exporting a pipeline from the v1 you must include_job because when importing the pipeline we search for the job name in the jobs property of the pipeline from the job list of the v2. and since we export pipeline from v1, the jobs that contains are from v1. so if we don t export them from v1, the import will not find them.

How?

We set include_jobto true if we use projectsExportV1 code simulation

String exportArtifactsV1() {
    logger.debug('Starting Export artifacts v1 task')
    configuration.pipeline.include_job = true