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

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

                Author: ASF GitHub Bot
            Created on: 01/Jul/18 13:15
            Start Date: 01/Jul/18 13:15
    Worklog Time Spent: 10m 
      Work Description: swegner commented on a change in pull request #5809: 
[BEAM-4495] Add Gradle tasks for website and add Jenkins pre-commit job
URL: https://github.com/apache/beam/pull/5809#discussion_r199349252
 
 

 ##########
 File path: website/build.gradle
 ##########
 @@ -0,0 +1,54 @@
+/*
+ * 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.
+ */
+
+// Define common lifecycle tasks and artifact types
+apply plugin: "base"
+
+task cleanWebsite(type: Delete) {
+  delete '.sass-cache', '.testcontent', 'content'
+}
+clean.dependsOn cleanWebsite
+
+task installBundler(type: Exec) {
+  commandLine './install_bundler.sh'
 
 Review comment:
   I believe the syntax you suggest is more powerful, but for this simple 
command they are equivalent. Both syntaxes are shown in the first example on 
[Authoring Tasks: Defining 
Tasks](https://docs.gradle.org/current/userguide/more_about_tasks.html#sec:defining_tasks)
   
   The syntax here is registering a new task named `installBundler` of type 
`Exec`. The configuration within it is specific to the [`Exec` task 
type](https://docs.gradle.org/current/dsl/org.gradle.api.tasks.Exec.html).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: 117969)
    Time Spent: 3h 20m  (was: 3h 10m)

> Create website pre-commits for apache/beam repository
> -----------------------------------------------------
>
>                 Key: BEAM-4495
>                 URL: https://issues.apache.org/jira/browse/BEAM-4495
>             Project: Beam
>          Issue Type: Sub-task
>          Components: testing, website
>            Reporter: Scott Wegner
>            Assignee: Scott Wegner
>            Priority: Major
>              Labels: beam-site-automation-reliability
>          Time Spent: 3h 20m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to