/benchmark/sql_regressions/DoltReleaseBenchmarkJenkinsfile: Install from release

This commit is contained in:
Dustin Brown
2020-03-26 07:57:48 -07:00
parent a20868ab9c
commit df1c8fbe54
2 changed files with 14 additions and 9 deletions

View File

@@ -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"
}

View File

@@ -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() {