summaryrefslogtreecommitdiffstats
path: root/scripts/compose_pki_core_packages
diff options
context:
space:
mode:
authorAbhishek Koneru <akoneru@redhat.com>2013-11-06 16:08:39 -0500
committerAbhishek Koneru <akoneru@redhat.com>2013-11-10 15:15:37 -0500
commitb9d125a25e7b53cfe1cc9437b6a31a87c324bbe2 (patch)
tree28434dbf47dbf2ac6711604ac3f8e4c0513dc327 /scripts/compose_pki_core_packages
parentbb20c9ffb38baae7ae89f16737e37569af445bdc (diff)
downloadpki-b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2.tar.gz
pki-b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2.tar.xz
pki-b9d125a25e7b53cfe1cc9437b6a31a87c324bbe2.zip
Provide compose scripts for tests.
Provide a compose script for building the test rpm and creating the job xml (by updating the job template with custom values provided in a job xml config file). Also add a new option --createrepo to the compose_pki_core_package script to create a repository of the built rpms at the location specified in a config file. Tickets #657, 722,723,724
Diffstat (limited to 'scripts/compose_pki_core_packages')
-rwxr-xr-xscripts/compose_pki_core_packages7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/compose_pki_core_packages b/scripts/compose_pki_core_packages
index eb124ebb0..fbd2b96b1 100755
--- a/scripts/compose_pki_core_packages
+++ b/scripts/compose_pki_core_packages
@@ -11,7 +11,6 @@
COMPOSE_PWD=`dirname $0`
source ${COMPOSE_PWD}/compose_functions
-
## Always switch into the base directory three levels
## above this shell script prior to executing it so
## that all of its output is written to this directory
@@ -214,3 +213,9 @@ chmod 775 ${PKI_CORE_PACKAGE_SCRIPT}
cd ${PKI_PACKAGES} ;
bash ./package_${PKI_CORE} | tee package_${PKI_CORE}.log 2>&1
+if [ "$CREATEREPO" == "Y" ] ; then
+ echo "Creating a repository of the built rpms"
+ cp -r $PKI_PWD/$PKI_DIR/scripts/repository.cfg .
+ cp -r $PKI_PWD/$PKI_DIR/scripts/scp_the_repo.exp .
+ Create_repo_after_build $REPO_CFG_FILE
+fi