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
16 changes: 11 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,36 @@
pipeline {
agent none
options {
timeout(time: 10, unit: 'MINUTES')
timeout(time: 10, unit: 'MINUTES')
}
stages {
stage("Validate Build") {
parallel {
stage("Validate C#") {
agent { label 's61113u16 (litecore)' }
steps {
sh 'jenkins/dotnet_build.sh 3.2.3 1.0.0'
sh 'jenkins/dotnet_build.sh 3.2.4 1.0.0'
}
}
stage("Validate C") {
agent { label 's61113u16 (litecore)' }
steps {
sh 'jenkins/c_build.sh 3.2.3'
sh 'jenkins/c_build.sh 3.2.4'
}
}
stage("Validate iOS") {
agent { label 'mobile-builder-ios-pull-request' }
steps {
sh 'jenkins/ios.sh 3.2.3 1.0.0'
sh 'jenkins/ios.sh 3.3.0 1.0.0'
}
}
stage("Validate Android") {
agent { label 'cbl-android' }
steps {
sh 'jenkins/android_build.sh 3.3.0 1.0.0'
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Couchbase Lite Documentation © 2024 by Couchbase Inc. is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).
Couchbase Lite Documentation © 2025 by Couchbase Inc. is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).

See https://creativecommons.org/licenses/by-nc-sa/4.0/ for details.

Expand Down
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,6 @@ This common header file, then invokes:

== License

Couchbase Lite Documentation © 2024 by Couchbase Inc. is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.
Couchbase Lite Documentation © 2025 by Couchbase Inc. is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.

See the LICENSE file or the {url-license}[Creative Commons CC BY-NC-SA 4.0 license page] for details.
30 changes: 15 additions & 15 deletions antora.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: couchbase-lite
version: '3.2'
prerelease:
version: '4.0'
prerelease:
title: Couchbase Lite
start_page: ROOT:index.adoc
nav:
Expand All @@ -14,19 +14,18 @@ nav:
- modules/swift/nav-swift.adoc
asciidoc:
attributes:
prerelease:
previous-release:
release: '3.2'
# releasetag:
major: 3
minor: 2
maintenance-ios: 4
maintenance-swift: 4
maintenance-c: 4
maintenance-android: 4
maintenance-java: 4
maintenance-net: 4
base: 3
prerelease:
previous-release:
release: '4.0'
# releasetag:
major: 4
minor: 0
maintenance-ios: 0
maintenance-c: 0
maintenance-android: 0
maintenance-java: 0
maintenance-net: 0
base: 0

# Used for Vector Search Extension.
vs-major: 1
Expand All @@ -37,5 +36,6 @@ asciidoc:
vs-maintenance-android: 0
vs-maintenance-java: 0
vs-maintenance-net: 0

page-toclevels: 2@
# NB: `preview` config now in preview/HEAD.yml, please update
77 changes: 77 additions & 0 deletions jenkins/android_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
#!/bin/bash -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"

CBL_VERSION="$1"
VS_VERSION="$2"

ANDROID_DIR=$SCRIPT_DIR/../modules/android

if ! hash curl >/dev/null 2>&1; then
echo "curl not found, aborting..."
exit 1
fi

if hash jq 2>/dev/null; then
JQ=jq
else
echo "jq is not installed, downloading a local copy..."

# Detect OS and architecture
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m)

case "$OS" in
linux)
case "$ARCH" in
x86_64|amd64)
JQ_BINARY="jq-linux-amd64"
;;
aarch64|arm64)
JQ_BINARY="jq-linux-arm64"
;;
*)
echo "Unsupported Linux architecture: $ARCH"
exit 1
;;
esac
;;
darwin)
case "$ARCH" in
x86_64|amd64)
JQ_BINARY="jq-macos-amd64"
;;
arm64)
JQ_BINARY="jq-macos-arm64"
;;
*)
echo "Unsupported macOS architecture: $ARCH"
exit 1
;;
esac
;;
*)
echo "Unsupported operating system: $OS"
exit 1
;;
esac

JQ_URL="https://github.com/jqlang/jq/releases/download/jq-1.8.1/${JQ_BINARY}"
echo "Downloading jq for $OS/$ARCH: $JQ_URL"

# Download jq using curl
curl -L "$JQ_URL" -o /tmp/jq-local

chmod +x /tmp/jq-local
JQ=/tmp/jq-local
fi


CBL_URL="http://proget.build.couchbase.com:8080/api/get_version?product=couchbase-lite-android&version=${CBL_VERSION}"
VS_URL="http://proget.build.couchbase.com:8080/api/get_version?product=couchbase-lite-android-vector-search&version=${VS_VERSION}"

CBL_BUILD=$(curl -s $CBL_URL | $JQ -r '.BuildNumber')
VS_BUILD=$(curl -s $VS_URL | $JQ -r '.BuildNumber')

pushd $ANDROID_DIR/examples/
./gradlew assembleDebug -PcblVersion=$CBL_VERSION-$CBL_BUILD -PextVersion=$VS_VERSION-$VS_BUILD
Loading