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

Support Apps Import from v2 #355

Open medamineziraoui opened 3 years ago

medamineziraoui commented 3 years ago

Partial feature from https://github.com/saagie/gradle-saagie-dataops-plugin/issues/350 Support Import for app

ZouhairBear commented 3 years ago

How to test :

Version to test : 2.1.19

The import phase: We used these zip files from the export feature :

Create a new build file: Example : build.projectsImport.gradle:

plugins {
    id 'groovy'
    id 'io.saagie.gradle-saagie-dataops-plugin' version '2.1.19'
}

saagie {
    server {
        url = "REPLACE_SAAGIEURL"
        login = "REPLACE_SAAGIELOGIN"
    password = "REPLACE_SAAGIEPASSWORD"
        environment = "REPLACE_SAAGIE"
    jwt = true
        acceptSelfSigned = true
    }
    project {
        id = "REPLACE_SAAGIE_PROJECT_ID"
    }
    importArtifacts {
        import_file = "./pipeline.zip"
        temporary_directory='./tmp'
    }
}

Then use this command line: The command line : gradle -b build.projectsImport.gradle projectsImport

ZouhairBear commented 3 years ago

350-import

ZouhairBear commented 3 years ago

350-import-version

sgokaram-saagie commented 3 years ago

importapp.err.log

Import fails trying to fetch APP technology.

plugins { id "io.saagie.gradle-saagie-dataops-plugin" version "2.1.19" }

saagie { server { url = saagieurl login = saagieuserid password = saagiepassword environment = saagieplatformid } project { id = "bdbd16b2-9010-4fe4-b355-65af1c586c8f" } importArtifacts { import_file="./job/apps.zip" temporary_directory="./tmp" } }

apps.zip

ZouhairBear commented 3 years ago

Retest the issue for the same projet Gradle Plugin Test with the following :

saagie { server { url = saagieurl login = saagieuserid password = saagiepassword environment = saagieplatformid jwt = true acceptSelfSigned = true }

project {
    id = "bdbd16b2-9010-4fe4-b355-65af1c586c8f"
}

importArtifacts {
    import_file = "/home/zouhair/bear/saagie/test_gradle/apps.zip"
    temporary_directory='/home/zouhair/bear/saagie/test_gradle/tmp'
}

}


Use this command line to start the script:
**The command line : **  `gradle -b build.import.gradle projectsImport`
ZouhairBear commented 3 years ago

Test result of the issue for the same projet Gradle Plugin Test : apps image

apps2 image image image