[ 
https://issues.apache.org/jira/browse/BEAM-7872?focusedWorklogId=301152&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-301152
 ]

ASF GitHub Bot logged work on BEAM-7872:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 26/Aug/19 10:27
            Start Date: 26/Aug/19 10:27
    Worklog Time Spent: 10m 
      Work Description: kamilwu commented on pull request #9213: [BEAM-7872] 
Simpler Flink cluster set up in load tests
URL: https://github.com/apache/beam/pull/9213#discussion_r317544712
 
 

 ##########
 File path: .test-infra/jenkins/DockerPublisher.groovy
 ##########
 @@ -0,0 +1,75 @@
+/*
+ * 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 common
+
+class DockerPublisher {
+  private String repositoryRoot
+
+  DockerPublisher(String repositoryRoot = 
'gcr.io/apache-beam-testing/beam_portability') {
+    this.repositoryRoot = repositoryRoot
+  }
+
+  /**
+   * Builds a Docker image from a gradle task and pushes it to the registry.
+   *
+   * @param job - jenkins job
+   * @param gradleTask - name of a Gradle task
+   * @param imageName - name of a docker image
+   * @param imageTag - tag of a docker image
+   */
+  final void publish(job, String gradleTask, String imageName, String imageTag 
= 'latest') {
 
 Review comment:
   `publish` is the only method in the interface that takes `job` as a 
parameter. I don't think it is necessary to set it in the constructor. 
 
----------------------------------------------------------------
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 301152)
    Time Spent: 12h 20m  (was: 12h 10m)

> Simpler Flink cluster set up in load tests
> ------------------------------------------
>
>                 Key: BEAM-7872
>                 URL: https://issues.apache.org/jira/browse/BEAM-7872
>             Project: Beam
>          Issue Type: Sub-task
>          Components: testing
>            Reporter: Kamil Wasilewski
>            Assignee: Kamil Wasilewski
>            Priority: Major
>          Time Spent: 12h 20m
>  Remaining Estimate: 0h
>
> Creating a new load test running on Flink runner could be easier by providing 
> a single `setUp` function which would encapsulate the process of creating 
> Flink cluster and registering teardown steps



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to