Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Apps Import from v2 #355

Open
medamineziraoui opened this issue Oct 19, 2020 · 6 comments
Open

Support Apps Import from v2 #355

medamineziraoui opened this issue Oct 19, 2020 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@medamineziraoui
Copy link
Contributor

Partial feature from #350
Support Import for app

@medamineziraoui medamineziraoui added the enhancement New feature or request label Oct 19, 2020
@medamineziraoui medamineziraoui added this to the 2.4 milestone Oct 19, 2020
@ZouhairBear
Copy link
Contributor

ZouhairBear commented Oct 27, 2020

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
Copy link
Contributor

ZouhairBear commented Oct 27, 2020

  • I have tested import apps from V2 without versions with the same zip file from the export feature: it works as expected

the zip file : 350.zip

350-import

@ZouhairBear
Copy link
Contributor

ZouhairBear commented Oct 27, 2020

  • I have tested import apps from V2 with versions with the same zip file from the export : it works as expected

the zip file : 350_with_version.zip

350-import-version

@sgokaram-saagie
Copy link
Contributor

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
Copy link
Contributor

ZouhairBear commented Nov 4, 2020

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

  • Same Exported Zip :
    apps.zip

  • Script : build.import.gradle

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

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
Copy link
Contributor

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

apps2
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants