You should get
{"status":"success","exportfile":"./job/export.zip"}
For both builds.
Then you should import the file using projectsImport with this build.
plugins {
id 'groovy'
id 'io.saagie.gradle-saagie-dataops-plugin' version '2.0.15'
}
saagie {
server {
url = saagieurl
login = saagieuserid
password = saagiepassword
environment = saagieplatformid
jwt = true
acceptSelfSigned = true
}
project {
id = saagieProject
}
importArtifacts {
import_file = "./job/export.zip"
temporary_directory='/tmp'
}
}
If you get
{status=success, job=[{id=21754, name=RetrieveCustomerData}], pipeline=[]}
Then it s working fine.
The bug is to get two jobs imported instead of one.
{status=success, job=[{id=21754, name=RetrieveCustomerData}, {id=19228, name=Predictive Maintenance - Prepare data}], pipeline=[]}
This message mean you got the bug behavior
use the projectsExportV1 to export job id
19228
with this build. note that the urlexport_file = "./job/"
andtemporary_directory
should existe.Then you need to use the projectsExportV1 to export job id 21754 with this build.
You should get
{"status":"success","exportfile":"./job/export.zip"}
For both builds. Then you should import the file using projectsImport with this build.If you get
{status=success, job=[{id=21754, name=RetrieveCustomerData}], pipeline=[]}
Then it s working fine. The bug is to get two jobs imported instead of one.{status=success, job=[{id=21754, name=RetrieveCustomerData}, {id=19228, name=Predictive Maintenance - Prepare data}], pipeline=[]}
This message mean you got the bug behavior