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

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

                Author: ASF GitHub Bot
            Created on: 03/Oct/18 23:16
            Start Date: 03/Oct/18 23:16
    Worklog Time Spent: 10m 
      Work Description: swegner commented on a change in pull request #6546: 
[BEAM-4495] Create precommit to stage website on GCS
URL: https://github.com/apache/beam/pull/6546#discussion_r222426049
 
 

 ##########
 File path: website/build.gradle
 ##########
 @@ -184,3 +202,32 @@ task publishWebsite << {
 
 commitWebsite.dependsOn testWebsite
 publishWebsite.dependsOn commitWebsite
+
+/*
+ * Stages a pull request on GCS
+ * For example:
+ *   ./gradlew :beam-website:stageWebsite -PpullId=${ghprbPullId}
+ */
+task stageWebsite << {
+  assert project.hasProperty('pullId')
+  assert pullId.isInteger()
+
+  def gcs_path = "gs://apache-beam-website-pull-requests/${pullId}"
 
 Review comment:
   It would be super-cool if this were also overridable as a property so that 
it was possible to test this with your own GCS bucket.
   
   In fact, perhaps it would be best to have this empty by default and set by 
Jenkins such that those with permissions don't accidentally push things when 
running locally.

----------------------------------------------------------------
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: 150974)
    Time Spent: 11h  (was: 10h 50m)

> 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: Udi Meiri
>            Priority: Major
>              Labels: beam-site-automation-reliability
>             Fix For: Not applicable
>
>          Time Spent: 11h
>  Remaining Estimate: 0h
>




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

Reply via email to