You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@infra.apache.org by "Tony Stevenson (JIRA)" <ji...@apache.org> on 2014/07/28 21:45:42 UTC
[jira] [Commented] (INFRA-6350) Create few tasks to update Apache
Struts website and generate docs
[ https://issues.apache.org/jira/browse/INFRA-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14076685#comment-14076685 ]
Tony Stevenson commented on INFRA-6350:
---------------------------------------
Lukasz,
Sorry this has not had any review for some time, it seems to have slipped through the net somehow. After reviewing your request we are going to close this as wont fix for now, as we dont think we can support your request to export from confluence straight into the CMS.
You will have to make your site build from the site tree, or using the native options in the CMS.
Sorry.
> Create few tasks to update Apache Struts website and generate docs
> ------------------------------------------------------------------
>
> 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
> Labels: #bugbash
>
> 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
> 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
> # 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 was sent by Atlassian JIRA
(v6.2#6252)