TSultanov commented on code in PR #25117:
URL: https://github.com/apache/beam/pull/25117#discussion_r1158618689


##########
playground/infrastructure/cloudbuild/playground_ci_stable.yaml:
##########
@@ -0,0 +1,112 @@
+# 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.
+
+steps:
+  - name: ubuntu
+    args:
+      - '-c'
+      - >-
+        echo "Search for CILOG keyword to find valuable logs entries"
+
+        echo "CILOG $(date --utc '+%D %T') Trigger run inputs:  PR URL:
+        $_PR_URL; PR Source Repo: $_FORK_REPO; PR Branch: $_PR_BRANCH; PR
+        Commit: $_PR_COMMIT; WebHook Action: $_PR_TYPE; Merge to: $_BASE_REF;"
+
+        if [[ "${_BASE_REF}" != "master" ]]; then
+            echo "CILOG Merging not into master, but into the branch 
apache/${_BASE_REF}. Exiting."
+            exit 0
+        fi
+
+        if [[ ${_PR_TYPE} == @(opened|synchronize) ]]; then
+            
+            echo "CILOG See also public logs: ${_PUBLIC_LOG_URL}"
+
+            echo "CILOG $(date --utc '+%D %T') Examples validation (CI) has 
started"
+            
+            echo "$(date --utc '+%D %T') Examples validation (CI) has started" 
>> ${_PUBLIC_LOG_LOCAL}
+            
+            apt update > /dev/null
+
+            apt-get install -y git curl apt-transport-https ca-certificates 
gnupg > /dev/null
+
+            echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | 
tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
+
+            curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | 
apt-key add -
+
+            apt-get update && apt-get install -y google-cloud-sdk > /dev/null
+            
+            git clone --branch master https://github.com/apache/beam.git
+            
+            cd beam
+            
+            git remote add forked https://github.com/${_FORK_REPO}.git
+
+            curl -O --output-dir /tmp 
https://raw.githubusercontent.com/apache/beam/master/playground/infrastructure/cloudbuild/examples_ci.sh

Review Comment:
   Please fetch this file from the commit from which the build is started, 
otherwise it can lead to very confusing behaviour or unanticipated breakages 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to