You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Lukasz Lenart (JIRA)" <ji...@apache.org> on 2013/07/17 08:24:50 UTC

[jira] [Comment Edited] (INFRA-6350) Create periodically executed job on buildbot to update draft docs of Apache Struts project

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

Lukasz Lenart edited comment on INFRA-6350 at 7/17/13 6:24 AM:
---------------------------------------------------------------

Yeah... but I'm wondering how to do it as SiteExporter wasn't officially released. Does buildbot has access to ASF snapshot repository?
                
      was (Author: lukaszlenart):
    Yeah... but I'm wondering how to do it as SiteExporter wan't officially released. Does buildbot has access to ASF snapshot repository?
                  
> 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
> svn co https://svn.apache.org/repos/infra/websites/production/struts/content/development/2.x/docs struts2-draft-docs --no-auth-cache
> # Grab docs from Confluence
> wget -erobots=off -nH -nv -E -L --directory-prefix=cwiki
> --no-check-certificate -r https://cwiki.apache.org/WW/
> # Remove the old docs
> rm -R struts2-draft-docs/*
> # Move the new docs
> mv cwiki/WW/* struts2-draft-docs/
> cd struts2-draft-docs
> touch PLACEHOLDER
> # Check for changes
> DIFF=`svn status`
> if [ -n "$DIFF" ]; then
>         echo "Changes detected - add and commit"
>         # Add all the file
>         svn add ./ --force
>         # Commit changes
>         svn commit -m "Updates draft docs" --no-auth-cache
> else
>         echo "No changes detected"
> fi
> cd ..
> # Cleanup
> rm -R struts2-draft-docs
> rm -R cwiki
> 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