Open medamineziraoui opened 3 years ago
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
the zip file : 350.zip
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`
Test result of the issue for the same projet Gradle Plugin Test
:
Partial feature from https://github.com/saagie/gradle-saagie-dataops-plugin/issues/350 Support Import for app