Skip to content

Commit

Permalink
On a clean build tar up the documentation.
Browse files Browse the repository at this point in the history
This will make it easier to ship around and deploy.
Refs #9593
  • Loading branch information
martyngigg committed Jun 4, 2014
1 parent f073f7c commit c8e7a9b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/Build/Jenkins/buildscript
Expand Up @@ -103,7 +103,11 @@ if [[ "$CLEANBUILD" == true ]]; then
fi

# We could build the source tarball anywhere, but we choose to do it on RHEL6
# We also parcel up the documentation into a tar file that is easier to move around
# and labelled by the commit id it was built with. This assumes the Jenkins git plugin
# has set the GIT_COMMIT environment variable
if [[ "$ON_RHEL6" == true ]]; then
tar -cjf mantiddocs-g${GIT_COMMIT:0:7}.tar.bz2 --exclude='*.buildinfo' docs/html
# The ..._PREFIX argument avoids opt/Mantid directories at the top of the tree
$SCL_ON_RHEL6 "cpack --config CPackSourceConfig.cmake -D CPACK_PACKAGING_INSTALL_PREFIX="
fi
Expand Down

0 comments on commit c8e7a9b

Please sign in to comment.