tvalentyn commented on a change in pull request #13393:
URL: https://github.com/apache/beam/pull/13393#discussion_r529073679
##########
File path: .test-infra/jenkins/job_Publish_Docker_Snapshots.groovy
##########
@@ -33,15 +34,15 @@ job('beam_Publish_Docker_Snapshots') {
)
// Runs once per day.
Review comment:
Run once every 4 hours?
##########
File path: .test-infra/jenkins/job_Publish_SDK_Image_Snapshots.groovy
##########
@@ -0,0 +1,52 @@
+/*
+ * 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.
+ */
+
+import CommonJobProperties as commonJobProperties
+
+// This job publishes regular snapshots of the SDK harness containers for
+// testing purposes. It builds and pushes the SDK container to the
+// specified GCR repo, tagged at the current Git commit.
+job('beam_Publish_Beam_SDK_Snapshots') {
+ description('Builds SDK harness images snapshots regularly for testing
purposes.')
+
+ // Set common parameters.
+ commonJobProperties.setTopLevelMainJobProperties(delegate)
+
+ // // Runs once per hour.
+ commonJobProperties.setAutoJob(delegate, '0 * * * *')
+
+ // Use jenkins env var interpolation - leave in single quotes
+ def imageRepo = 'gcr.io/apache-beam-testing/beam-sdk'
+ def imageTag = '${GIT_COMMIT}'
Review comment:
I think there is no concern with on-demand runs since we tag on git
commit. If we will need to build these container images for handling non-master
imports, we can include branch name in the imageRepo or use the release/rc tags
instead of commit tags.
##########
File path: .test-infra/jenkins/job_Publish_SDK_Image_Snapshots.groovy
##########
@@ -0,0 +1,58 @@
+/*
+ * 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.
+ */
+
+import CommonJobProperties as commonJobProperties
+import static JavaTestProperties.SUPPORTED_CONTAINER_TASKS as
SUPPORTED_JAVA_CONTAINER_TASKS
+import static PythonTestProperties.SUPPORTED_CONTAINER_TASKS as
SUPPORTED_PYTHON_CONTAINER_TASKS
+
+// This job publishes regular snapshots of the SDK harness containers for
+// testing purposes. It builds and pushes the SDK container to the
+// specified GCR repo, tagged at the current Git commit.
+job('beam_Publish_Beam_SDK_Snapshots') {
+ description('Builds SDK harness images snapshots regularly for testing
purposes.')
+
+ // Set common parameters.
+ commonJobProperties.setTopLevelMainJobProperties(delegate)
+
+ // Runs once per hour during MTV time (9-16 UTC-8 --> 17-23,0-1UTC)
+ commonJobProperties.setAutoJob(delegate, 'H 0-2,17-23 * * *')
+
+ // Use jenkins env var interpolation - leave in single quotes
+ def imageRepo = 'gcr.io/apache-beam-testing/beam-sdk'
+ def imageTag = '${GIT_COMMIT}'
+
+ steps {
+ shell("echo 'Pushing SDK snapshots to ${imageRepo} at tag: ${imageTag}'")
+ gradle {
+ rootBuildScriptDir(commonJobProperties.checkoutDir)
+ commonJobProperties.setGradleSwitches(delegate)
+ tasks(':sdks:go:container:dockerPush')
+ SUPPORTED_JAVA_CONTAINER_TASKS.each { taskVer ->
+ tasks(":sdks:java:container:${taskVer}:dockerPush")
+ }
+ SUPPORTED_PYTHON_CONTAINER_TASKS.each { taskVer ->
+ tasks(":sdks:python:container:${taskVer}:dockerPush")
+ }
+ tasks(':sdks:python:container:py36:dockerPush')
+ tasks(':sdks:python:container:py37:dockerPush')
+ tasks(':sdks:python:container:py38:dockerPush')
Review comment:
Leftover?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]