www-infrastructure-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rene Gielen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-6350) Create periodically executed job on buildbot to update draft docs of Apache Struts project
Date Sat, 10 Aug 2013 10:29:48 GMT

    [ https://issues.apache.org/jira/browse/INFRA-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13735831#comment-13735831

Rene Gielen commented on INFRA-6350:

Daniel, the docs are not in svn - they are placed in svn exactly once, namely in CMS svn,
solely for the sake of making them available on the TLP website. So I don't see a case for
moving from one svn location to another here.

Just to clarify what we would like to accomplish:
1) export a static HTML version of our Confluence wiki pages (no svn involved besides using
a maven pom residing in svn, maven involved due to export functionality of SiteExplorer plugin
not found elsewhere and due to the need for a similar static export to package doc-zip artifact
for project releases)
2) publish this static docs export to http://struts.apache.org/development/2.x/docs/
3) repeat this in a regular schedule

Step 1) is a glorified wget, and since CMS content is managed in svn we need to merge the
wget output into the CMS svn checkout (update existing, add new, remove export files that
no longer exists in Confluence)
> Create periodically executed job on buildbot to update draft docs of Apache Struts project
> ------------------------------------------------------------------------------------------
>                 Key: INFRA-6350
>                 URL: https://issues.apache.org/jira/browse/INFRA-6350
>             Project: Infrastructure
>          Issue Type: Task
>      Security Level: public(Regular issues) 
>          Components: Buildbot, CMS, SvnPubSub
>            Reporter: Lukasz Lenart
>            Priority: Minor
> I'm using the below script to manually update draft docs (development version of documentation).
I would like to perform this task automatically by buildbot.
> {noformat}
> #!/bin/sh
> # This script is used to periodically update Development version of docs - Draft docs
> # Grab docs from Confluence
> mvn clean package -Pupdate-draft-docs
> # The docs are available here http://struts.apache.org/development/2.x/docs/
> svn co https://svn.apache.org/repos/infra/websites/production/struts/content/development/2.x/docs
target/struts2-draft-docs --no-auth-cache
> # Remove the old docs
> rm -R target/struts2-draft-docs/*
> # Move the new docs
> mv target/cwiki/WW/docs/* target/struts2-draft-docs/
> cd target/struts2-draft-docs
> # Check for changes
> DIFF=`svn status`
> if [ -n "$DIFF" ]; then
>     # echo "Changes detected - add and commit"
>     # Add all the file
>     svn add ./ --force
>     # Remove already removed files
>     svn status | grep '^\!' | sed 's/! *//' | awk 'BEGIN {FS="\t"};{print "\""$1"\""}'
| xargs svn del --force
>     # Commit changes
>     svn commit -m "Updates draft docs" --no-auth-cache
> fi
> cd ../..
> # Cleanup
> mvn clean
> # echo "Success!"
> {noformat}

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message