Skip to content

Commit

Permalink
Merge pull request quattor#361 from jrha/releaser_fixes
Browse files Browse the repository at this point in the history
Releaser fixes
  • Loading branch information
jouvin authored Nov 6, 2024
2 parents d7571ed + ff49f77 commit af0b6e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 144 deletions.
137 changes: 0 additions & 137 deletions src/releasing/maven-illuminate.sh

This file was deleted.

13 changes: 6 additions & 7 deletions src/releasing/releaser.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

REPOS_MVN="release aii CAF CCM cdp-listend configuration-modules-core configuration-modules-grid LC ncm-cdispd ncm-ncd ncm-query ncm-lib-blockdevices"
REPOS_ONE_TAG="template-library-core template-library-standard template-library-examples template-library-monitoring"
REPOS_ONE_TAG="template-library-core template-library-standard template-library-examples"
REPOS_BRANCH_TAG="template-library-os template-library-grid template-library-openstack"
RELEASE=""
BUILD=""
Expand All @@ -27,7 +27,6 @@ else
fi

shopt -s expand_aliases
source maven-illuminate.sh

# Update the Quattor version used by template-library-examples (SCDB-based) to the one being released
update_examples () {
Expand Down Expand Up @@ -62,11 +61,11 @@ publish_templates() {
tag=$2
cd configuration-modules-$1
git checkout $tag
mvn-c clean compile
mvn -e clean compile
# ugly hack
if [ -d ncm-metaconfig ]; then
cd ncm-metaconfig
mvn-c clean test
mvn -e clean test
cd ..
fi
components_root=${LIBRARY_CORE_DIR}/components
Expand Down Expand Up @@ -97,7 +96,7 @@ publish_aii() {
(
cd aii || return
git checkout "aii-$tag"
mvn-c -q clean compile
mvn -e -q clean compile

# Copy dedicated AII templates
cp -r aii-core/target/pan/quattor/aii/* "${dest_root}"
Expand All @@ -113,7 +112,7 @@ publish_aii() {
(
cd configuration-modules-core || return
git checkout "configuration-modules-core-$tag"
mvn-c -q clean compile
mvn -e -q clean compile
# Copy shared AII/core component templates
for component in freeipa opennebula; do
rm -Rf "${dest_root:?}/${component}"
Expand Down Expand Up @@ -267,7 +266,7 @@ if gpg-agent; then
for r in $REPOS_MVN; do
echo_info "---------------- Releasing $r ----------------"
cd $r
mvn-c -q -DautoVersionSubmodules=true -Dgpg.useagent=true -Darguments=-Dgpg.useagent=true -B -DreleaseVersion=$VERSION clean release:prepare
mvn -e -q -DautoVersionSubmodules=true -Dgpg.useagent=true -Darguments=-Dgpg.useagent=true -B -DreleaseVersion="$VERSION" clean release:prepare
if [[ $? -gt 0 ]]; then
echo_error "RELEASE FAILURE"
exit 1
Expand Down

0 comments on commit af0b6e3

Please sign in to comment.