Apache T U R B I N E

T U R B I N E S I T E S T R U C T U R E AND P U B L I S H I N G

Assumptions:

The table shows the subfolder assignments (in .asf.yaml) from subdir to the web site:

turbine.apache.org

URL contextGIT REPO.asf.yaml subdirExplanation
/turbine--site.git.asf.yaml has no subdir setthe site content is published to the root
/turbine/development/turbine-5-1turbine-core.gitsubdir: turbine/development/turbine-5-1development, usually a SNAPSHOT version
/turbine/turbine-2-3-3turbine-core.gitsubdir: turbine/turbine-2-3-3previous release 2.3.3, (no dots allowed in subdir!)
/turbine/turbine-5-0turbine-core.gitsubdir: turbine/turbine-5.0previous release 5.0, (no dots allowed in subdir!)
/fulcrum/turbine-fulcrum-site.gitsubdir: fulcrumwrapper for context path fulcrum/
/fulcrum/fulcrum-intake/turbine-fulcrum-intake.gitsubdir: fulcrum/fulcrum-intakeFulcrum component intake
/fulcrum/fulcrum-json/turbine-fulcrum-site.gitsubdir: fulcrum/fulcrum-jsonFulcrum component json*
/fulcrum/fulcrum-/turbine-fulcrum-.gitsubdir: fulcrum/fulcrum-Fulcrum component

This mechanism is possible, because once a subdir (including the root) is published, publishing this and any nested subdir is performed as an git update, not as a clean clone.

TODO: Save previous versions of Fulcrums in the Turbine /turbine/turbine->VERSION>?

  • A multi modules component requires building the site with mvn site:stage.

The only turbine component with variable subdir/contexts is turbine-core.

Details about Turbine Core Subdir / Release Mapping

You have to edit .asf.yaml in branch .asf-site after a release.

Change in the tagged release

git checkout turbine-5.1

and generate the site. Save it into an external tmp-folder.

git checkout asf-site

Cleanup

git ls-files | grep -v "^\\." | xargs  rm -f

and copy the content from the tmp-folder to the root.

and change

subdir: turbine/development/turbine-5-1

to subdir: turbine/turbine-5-1

Prepare commit and push

    git add -A
    git commit "New site " 
    git push

This will put the content into a new node turbine/turbine-5-1.

After the new site is deployed, change subdir to the next version

subdir: turbine/development/turbine-5-2

After this Jenkinsfile could be used to publish the site in Apache Build. (WORK IN PROGRESS this has to tested yet).

License

Apache Turbine Components are distributed under the Apache License, version 2.0.