You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by up...@apache.org on 2018/01/03 22:39:17 UTC

[geode] branch develop updated: GEODE-4185: Add job to update file in GCS with SHA that passed all tests

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new 4c298b2  GEODE-4185: Add job to update file in GCS with SHA that passed all tests
4c298b2 is described below

commit 4c298b22e0a83122d5428947bfac77621f29313f
Author: Sean Goller <se...@goller.net>
AuthorDate: Wed Jan 3 14:39:14 2018 -0800

    GEODE-4185: Add job to update file in GCS with SHA that passed all tests
    
    The endpoint is http://files.apachegeode-ci.info/passing.txt
---
 ci/pipelines/develop.yml         | 23 +++++++++++++++++++++++
 ci/scripts/update-passing-ref.sh | 28 ++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+)

diff --git a/ci/pipelines/develop.yml b/ci/pipelines/develop.yml
index 760f898..8a876da 100644
--- a/ci/pipelines/develop.yml
+++ b/ci/pipelines/develop.yml
@@ -377,3 +377,26 @@ jobs:
                - flakytestfiles
                path: geode-ci/ci/scripts/test-archive.sh
 
+- name: UpdatePassingRef
+  serial: true
+  public: true
+  plan:
+    - get: geode
+      passed: [AcceptanceTest, DistributedTest, IntegrationTest]
+      trigger: true
+    - get: geode-ci
+    - task: updatepassingref
+      config:
+        inputs:
+          - name: geode
+          - name: geode-ci
+        platform: linux
+        outputs:
+          - name: results
+        image_resource: *docker-geode-build-image
+        params:
+          MAINTENANCE_VERSION: ((!maintenance-version))
+          SERVICE_ACCOUNT: ((!concourse-gcp-account))
+          PUBLIC_BUCKET: ((!public-bucket))
+        run:
+          path: geode-ci/ci/scripts/update-passing-ref.sh
diff --git a/ci/scripts/update-passing-ref.sh b/ci/scripts/update-passing-ref.sh
new file mode 100755
index 0000000..05cfa8f
--- /dev/null
+++ b/ci/scripts/update-passing-ref.sh
@@ -0,0 +1,28 @@
+#!/usr/bin/env bash
+
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+
+export BUILDROOT=$(pwd)
+REPOSITORY_DIR=$(pwd)/geode
+LOCAL_FILE=${BUILDROOT}/results/passing.txt
+DESTINATION_URL=gs://${PUBLIC_BUCKET}/passing.txt
+pushd ${REPOSITORY_DIR}
+git rev-parse HEAD > ${LOCAL_FILE}
+popd
+gsutil -q -m cp ${LOCAL_FILE} ${DESTINATION_URL}

-- 
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].