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

Cache problem on the mac IOs computer #238

Open medamineziraoui opened 4 years ago

medamineziraoui commented 4 years ago

use the projectsExportV1 to export job id 19228 with this build. note that the url export_file = "./job/" andtemporary_directoryshould existe.

plugins {
  id "io.saagie.gradle-saagie-dataops-plugin" version "2.0.15"
}
saagie {
    server {
        url = saagieurl
        login = saagieuserid
    password = saagiepassword
        environment = saagieplatformid
    jwt = true
    }
    job {
          ids =  [ "19228" ]
        }
    exportArtifacts {
          export_file = "./job/export.zip"
          overwrite=true
      temporary_directory='./tmp'          
    }
}

Then you need to use the projectsExportV1 to export job id 21754 with this build.

plugins {
  id "io.saagie.gradle-saagie-dataops-plugin" version "2.0.15"
}
saagie {
    server {
        url = saagieurl
        login = saagieuserid
    password = saagiepassword
        environment = saagieplatformid
    jwt = true
    }
    job {
          ids =  [ "21754" ]
        }
    exportArtifacts {
          export_file = "./job/export.zip"
          overwrite=true
      temporary_directory='./tmp'          
    }
}

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

medamineziraoui commented 4 years ago
medamineziraoui commented 4 years ago