mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-07 08:50:34 -06:00
/benchmark/sql_regressions/DoltReleaseBenchmarkJenkinsfile: Install from release
This commit is contained in:
@@ -15,18 +15,18 @@ pipeline {
|
||||
DOLT_ROOT_PATH="${pwd()}/tempRoot"
|
||||
DOLT_CREDS = credentials("system-account-dolthub-creds")
|
||||
DOLT_GLOBAL_CONFIG = credentials("system-account-dolthub-config")
|
||||
DOLT_RELEASE_URL = "https://github.com/liquidata-inc/dolt/releases/download/v\"$DOLT_RELEASE\"/dolt-linux-amd64.tar.gz"
|
||||
}
|
||||
steps {
|
||||
sh "rm -rf $TMPDIR && mkdir $TMPDIR"
|
||||
sh "rm -rf $DOLT_ROOT_PATH && mkdir $DOLT_ROOT_PATH"
|
||||
dir ("dolt-release") {
|
||||
checkout([$class: 'GitSCM', branches: [[name: "${DOLT_RELEASE}"]],
|
||||
userRemoteConfigs: [[url: 'https://github.com/liquidata-inc/dolt.git']]])
|
||||
}
|
||||
dir ("dolt-release/go") {
|
||||
sh "go get -mod=readonly ./..."
|
||||
sh "go build -mod=readonly -o ../../.ci_bin/dolt ./cmd/dolt/."
|
||||
}
|
||||
sh """
|
||||
curl -A CURL_USER_AGENT:-dolt-installer -fsL "$DOLT_RELEASE_URL" > dolt.tar.gz
|
||||
tar zxf dolt.tar.gz
|
||||
rm -rf ./.ci_bin && mkdir ./.ci_bin
|
||||
install dolt-linux-amd64/bin/dolt ./.ci_bin/
|
||||
dolt version
|
||||
"""
|
||||
dir ("sqllogictest") {
|
||||
git url: "https://github.com/liquidata-inc/sqllogictest.git"
|
||||
}
|
||||
|
||||
@@ -115,10 +115,15 @@ select * from releases_dolt_mean_results;\
|
||||
}
|
||||
|
||||
function rebuild_dolt() {
|
||||
echo "Removing dolt version $DOLT_VERSION..."
|
||||
rm ../../.ci_bin/dolt
|
||||
echo "Rebuilding dolt from current checkout..."
|
||||
pushd ../../go && \
|
||||
pwd
|
||||
go get -mod=readonly ./... && \
|
||||
go build -mod=readonly -o ../../.ci_bin/dolt ./cmd/dolt/. && \
|
||||
go build -mod=readonly -o ../.ci_bin/dolt ./cmd/dolt/. && \
|
||||
popd
|
||||
dolt version
|
||||
}
|
||||
|
||||
function import_one_releases() {
|
||||
|
||||
Reference in New Issue
Block a user