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

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

                Author: ASF GitHub Bot
            Created on: 10/Oct/18 22:02
            Start Date: 10/Oct/18 22:02
    Worklog Time Spent: 10m 
      Work Description: swegner commented on a change in pull request #6608: 
[BEAM-5681] Fix website tasks when pull-request ID is specified
URL: https://github.com/apache/beam/pull/6608#discussion_r224256620
 
 

 ##########
 File path: website/build.gradle
 ##########
 @@ -230,11 +264,11 @@ publishWebsite.dependsOn commitWebsite
  *   ./gradlew :beam-website:stageWebsite -PgithubPullRequestId=${ghprbPullId} 
-PwebsiteBucket=foo
  */
 task stageWebsite << {
-  assert project.hasProperty('githubPullRequestId')
-  assert githubPullRequestId.isInteger()
+  // TODO: Refactor this duplication with build task
+  def baseUrl = project.findProperty('githubPullRequestId') ? 
"${project.findProperty('githubPullRequestId')}" : 'latest'
 
 Review comment:
   This works in the latest version. I ran `./gradlew 
:beam-website:stageWebsite` locally: [Gradle Build 
Scan](https://gradle.com/s/rmd2mxqfbrofg)
   
   ```
   Website published to 
http://apache-beam-website-pull-requests.storage.googleapis.com/latest/index.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:
us...@infra.apache.org


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

    Worklog Id:     (was: 153299)
    Time Spent: 1h 20m  (was: 1h 10m)

> [beam_PreCommit_Website_Cron] [testWebsite] Fails on URL checks
> ---------------------------------------------------------------
>
>                 Key: BEAM-5681
>                 URL: https://issues.apache.org/jira/browse/BEAM-5681
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures, website
>            Reporter: Scott Wegner
>            Assignee: Alan Myrvold
>            Priority: Major
>              Labels: currently-failing
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> _Use this form to file an issue for test failure:_
>  * [Jenkins Job|https://builds.apache.org/job/beam_PreCommit_Website_Cron/154]
>  * [Gradle Build 
> Scan|https://scans.gradle.com/s/k6ul7uyovyyce/console-log?task=:beam-website:testWebsite#L27]
>  * [Test source 
> code|https://github.com/apache/beam/blob/1c573ffba014f6969a689d0e6cdcace31358885d/website/build.gradle#L140]
> Initial investigation:
> It seems every link is failing. Same error message:
> {{- ./generated-content/beam/capability/2016/03/17/capability-matrix.html}}
> {{  *  http:// is an invalid URL (line 76)}}
> {{     <a href="//" class="navbar-brand">}}
> {{        <img alt="Brand" style="height: 25px" 
> src="//images/beam_logo_navbar.png">}}
> {{      </a>}}
> The _Cron version of this job has been failing consistently since 10/5 
> ([history|https://builds.apache.org/job/beam_PreCommit_Website_Cron/])
> ----
> _After you've filled out the above details, please [assign the issue to an 
> individual|https://beam.apache.org/contribute/postcommits-guides/index.html#find_specialist].
>  Assignee should [treat test failures as 
> high-priority|https://beam.apache.org/contribute/postcommits-policies/#assigned-failing-test],
>  helping to fix the issue or find a more appropriate owner. See [Apache Beam 
> Post-Commit 
> Policies|https://beam.apache.org/contribute/postcommits-policies]._



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

Reply via email to