Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .build/ci/generate-ci-summary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ cat >${DIST_DIR}/ci_summary.html <<EOL
<h1>CI Summary ${BUILD_TAG}</h1>
<h2>Build State</h2>
<ul>
<li>sha: $(git ls-files -s ${CASSANDRA_DIR} | git hash-object --stdin)</li>
<li>sha: $(git -C ${CASSANDRA_DIR} ls-files -s | git hash-object --stdin)</li>
<li>repo: $(git -C ${CASSANDRA_DIR} remote get-url origin)</li>
<li>branch: $(git -C ${CASSANDRA_DIR} branch --remote --verbose --no-abbrev --contains | sed -rne 's/^[^\/]*\/([^\ ]+).*$/\1/p')</li>
<li>date: $(date)</li>
Expand All @@ -60,7 +60,7 @@ cat >${DIST_DIR}/ci_summary.html <<EOL
<li>profile_custom_regexp: ${PROFILE_CUSTOM_REGEXP}</li>
<li>architecture: ${ARCHITECTURE}</li>
<li>jdk: ${JDK}</li>
<li>dtest_repository: {DTEST_REPOSITORY}</li>
<li>dtest_repository: ${DTEST_REPOSITORY}</li>
<li>dtest_branch: ${DTEST_BRANCH}</li>
</ul>
</body>
Expand Down
7 changes: 5 additions & 2 deletions .build/docker/_build-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ set -e

# note, this edits files in your working cassandra directory
pushd $CASSANDRA_DIR >/dev/null
# Restore the changelog on both success and failure so a retried cell does not stack
# generated versions from its previous attempt.
trap 'git -C "${CASSANDRA_DIR}" restore debian/changelog || true' EXIT
export BUILD_DIR="$(realpath --relative-to=$CASSANDRA_DIR ${DIST_DIR})"
export DEBFULLNAME="${DEBFULLNAME:-Apache Cassandra build}"
export DEBEMAIL="${DEBEMAIL:-dev@cassandra.apache.org}"

# Used version for build will always depend on the git referenced used for checkout above
# Branches will always be created as snapshots, while tags are releases
Expand Down Expand Up @@ -128,7 +133,5 @@ set +e
mv ../cassandra[-_]*${CASSANDRA_VERSION}* "${DIST_DIR}"
# clean build deps
rm -f cassandra-build-deps_*
# restore debian/changelog
git restore debian/changelog || true

popd >/dev/null
Loading