Meridio: Upload to artifactory 97/17197/1
authorLionel Jouin <lionel.jouin@est.tech>
Thu, 16 Feb 2023 17:14:07 +0000 (18:14 +0100)
committerLionel Jouin <lionel.jouin@est.tech>
Thu, 16 Feb 2023 17:14:07 +0000 (18:14 +0100)
Change-Id: I18e15bc4c322b48a09dd60e885e2a0bf604501eb

jjb/nsm/e2e.Jenkinsfile
jjb/nsm/meridio-e2e-long-run-test-kind.yaml
jjb/nsm/meridio-e2e-test-kind.yaml

index 06e0e12686a6e3834876ec55f9043d7d1a94e4e2..a1ace8f691a927e558071a2ea1b87177b99f49ef 100644 (file)
@@ -82,7 +82,7 @@ node('nordix-nsm-build-ubuntu2204') {
         }
         stage('Report') {
             try {
-                Report().call()
+                Report(build_number).call()
             } catch (org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
                 currentBuild.result = 'ABORTED'
             } catch (Exception e) {
@@ -169,7 +169,7 @@ def GetSeed() {
 }
 
 // http://JENKINS_URL/job/meridio-e2e-test-kind/api/json?tree=allBuilds[status,timestamp,id,result,description]{0,9}&pretty=true
-def Report() {
+def Report(id) {
     return {
         def jenkins_url = 'jenkins.nordix.org'
 
@@ -199,8 +199,15 @@ def Report() {
         ReportIPFamily(success, failure).call()
         ReportKubernetes(success, failure).call()
 
+        sh 'printenv > _output/parameters.txt'
+        sh "echo 'RESULT=$currentBuild.result' >> _output/parameters.txt"
+
         try {
             archiveArtifacts artifacts: '_output/**/*.*', followSymlinks: false
+            sh "tar -czvf ${id}.tar.gz -C _output ."
+            withCredentials([string(credentialsId: 'nsm-nordix-artifactory-api-key', variable: 'API_KEY')]) {
+                sh "curl -H 'X-JFrog-Art-Api:${API_KEY}' -T ${id}.tar.gz 'http://artifactory.nordix.org/artifactory/cloud-native/meridio/e2e-test-reports/${id}.tar.gz'"
+            }
         } catch (Exception e) {
         }
     }
index 70884c5ad83044cb3bf445a7a5d5393a10c912e1..678878a2071b0c315fc2dab671259b91a1538104 100644 (file)
@@ -30,8 +30,6 @@
     project-type: pipeline
     disabled: '{obj:disabled}'
 
-    concurrent: false
-
     properties:
       - github:
           url: https://github.com/Nordix/Meridio-Operator
index de9483de25e98d7b441cd64b68f638594b1dc669..4bf2c1bd77b00b0e12312c0e68231a0abf7f7cb5 100644 (file)
@@ -30,8 +30,6 @@
     project-type: pipeline
     disabled: '{obj:disabled}'
 
-    concurrent: false
-
     properties:
       - github:
           url: https://github.com/Nordix/Meridio-Operator