-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[VEC-32] Add a few more VectorDistanceMetric (#1)
* Added index_similarity_metric option to client * Added Jenkinsfile * Running Jenkinsfile command in bash * Updated version --------- Co-authored-by: Jesse Schmidt <jschmidt@aerospike.com>
- Loading branch information
1 parent
0b165de
commit 76cc0f3
Showing
6 changed files
with
91 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
pipeline { | ||
agent any | ||
|
||
options { | ||
disableConcurrentBuilds() | ||
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5')) | ||
} | ||
|
||
stages { | ||
stage("Pipeline") { | ||
stages { | ||
stage("Checkout") { | ||
steps { | ||
checkout([ | ||
$class : 'GitSCM', | ||
branches : scm.branches, | ||
extensions : scm.extensions + [[$class: 'CleanBeforeCheckout']], | ||
userRemoteConfigs: scm.userRemoteConfigs | ||
]) | ||
} | ||
} | ||
|
||
stage("Build") { | ||
steps { | ||
echo "Building.." | ||
sh "python3 -m venv .venv" | ||
sh '''#!/bin/bash | ||
source .venv/bin/activate | ||
''' | ||
sh "./proto/codegen.sh" | ||
sh "python3 -m pip install build" | ||
sh "python3 -m build" | ||
} | ||
} | ||
|
||
stage("Upload") { | ||
steps { | ||
echo "Uploading archives.." | ||
sh "python3 -m pip install twine" | ||
sh "python3 -m twine upload --repository ecosystem-python-dev-local dist/*" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
cleanup { | ||
cleanWs() | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters