Support Apps Import from v2
Opened this issue · 6 comments
Partial feature from #350
Support Import for app
How to test :
Version to test : 2.1.19
The import phase:
We used these zip files from the export feature :
-
export app without versions : 350.zip
-
export app with versions : 350_with_version.zip
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
-
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
-
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
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"
}
}
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