You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by on...@apache.org on 2021/10/01 23:39:13 UTC

[geode-native] branch develop updated: Add a fan-in job and print out the properties of the Geode build used for testing (#875)

This is an automated email from the ASF dual-hosted git repository.

onichols pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode-native.git


The following commit(s) were added to refs/heads/develop by this push:
     new c7d17c1  Add a fan-in job and print out the properties of the Geode build used for testing (#875)
c7d17c1 is described below

commit c7d17c1b9f2c0d1dad9c5c6a268c748c8a23a190
Author: Owen Nichols <34...@users.noreply.github.com>
AuthorDate: Fri Oct 1 16:39:06 2021 -0700

    Add a fan-in job and print out the properties of the Geode build used for testing (#875)
---
 ci/lib/templates.lib.txt |  1 +
 ci/release/pipeline.yml  | 36 +++++++++++++++++++++++++++++++++++-
 2 files changed, 36 insertions(+), 1 deletion(-)

diff --git a/ci/lib/templates.lib.txt b/ci/lib/templates.lib.txt
index e38724a..01e3b93 100644
--- a/ci/lib/templates.lib.txt
+++ b/ci/lib/templates.lib.txt
@@ -251,6 +251,7 @@ geode_version=$(cat geode-latest/version)
 geode_name="apache-geode-${geode_version}"
 geode_artifact="${geode_name}.tgz"
 tar xvf geode-latest/${geode_artifact} --directory=geode --strip-components=1
+unzip -p geode/lib/geode-core-${geode_version}.jar org/apache/geode/internal/GemFireVersion.properties
 cp geode-latest/version geode/version
 (@- end @)
 
diff --git a/ci/release/pipeline.yml b/ci/release/pipeline.yml
index dd3e9fc..aba143d 100644
--- a/ci/release/pipeline.yml
+++ b/ci/release/pipeline.yml
@@ -17,6 +17,7 @@
 #@      "github_resource",
 #@      "gci_resource",
 #@      "registry_image_resource",
+#@      "bash_task",
 #@      "build_job_name",
 #@      "packer_job",
 #@      "packer_job_name",
@@ -27,6 +28,8 @@
 #@      "put_package",
 #@      "version_source_job",
 #@      "version_source_job_name")
+#@ load("templates.lib.txt",
+#@       "extract_geode_bash_task")
 #@ load("@ytt:data", "data")
 #@ load("@ytt:overlay", "overlay")
 
@@ -98,7 +101,7 @@ jobs:
               passed: [ version-source ]
 
   #@overlay/append
-  - name: github-pre-release
+  - name: native-passed
     plan:
       - in_parallel:
           fail_fast: true
@@ -131,6 +134,35 @@ jobs:
             #@ end
             #@ end
             #@ end
+            - do:
+              - get: task-image
+              - get: geode-latest
+              - #@ bash_task("extract-geode", [{"name":"geode-latest"}], [{"name":"geode"}], extract_geode_bash_task(), caches=[{"path":"geode"}])
+
+  #@overlay/append
+  - name: github-pre-release
+    plan:
+      - in_parallel:
+          fail_fast: true
+          steps:
+            - get: version
+              passed:
+                - native-passed
+              trigger: true
+            - get: source
+              passed:
+                - native-passed
+              trigger: true
+            #@ for build in data.values.builds:
+            #@ for config in data.values.configs:
+            #@ for package in build.packages:
+            - get: #@ package_resource_name(build, config, package)
+              passed:
+                - native-passed
+              trigger: true
+            #@ end
+            #@ end
+            #@ end
       - put: github-pre-release
         params:
           commitish: source/.git/ref
@@ -174,6 +206,8 @@ groups:
       - bump-minor-version
       #@overlay/append
       - github-pre-release
+      #@overlay/append
+      - native-passed
   #@overlay/match by="name"
   - name: version
     jobs: