Skip to content

Commit

Permalink
CUSTOM-165 Custom Build (#2467)
Browse files Browse the repository at this point in the history
  • Loading branch information
adivinho authored Jan 18, 2024
1 parent 8d1b33b commit 0df2a04
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions vars/uploadTarballToDownloadsTesting.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ def call(String PRODUCT_NAME, String PRODUCT_VERSION) {
# Get PXC version from a file
if [ "x${PRODUCT_NAME}" == "xpxc" ]; then
curl -O https://raw.githubusercontent.com/percona/percona-xtradb-cluster/${PRODUCT_VERSION}/MYSQL_VERSION
MYSQL_VERSION_MAJOR=\$(cat MYSQL_VERSION | grep MYSQL_VERSION_MAJOR)
MYSQL_VERSION_MINOR=\$(cat MYSQL_VERSION | grep MYSQL_VERSION_MINOR)
MYSQL_VERSION_PATCH=\$(cat MYSQL_VERSION | grep MYSQL_VERSION_PATCH)
cutProductVersion=\${MYSQL_VERSION_MAJOR}.\${MYSQL_VERSION_MINOR}.\${MYSQL_VERSION_PATCH}
isitcustom=\$(echo \${cutProductVersion} | grep CUSTOM)
if [ "x\${isitcustom}" == "x" ]; then
curl -O https://raw.githubusercontent.com/percona/percona-xtradb-cluster/${PRODUCT_VERSION}/MYSQL_VERSION
MYSQL_VERSION_MAJOR=\$(cat MYSQL_VERSION | grep MYSQL_VERSION_MAJOR | awk -F= '{print \$2}')
MYSQL_VERSION_MINOR=\$(cat MYSQL_VERSION | grep MYSQL_VERSION_MINOR | awk -F= '{print \$2}')
MYSQL_VERSION_PATCH=\$(cat MYSQL_VERSION | grep MYSQL_VERSION_PATCH | awk -F= '{print \$2}')
cutProductVersion=\${MYSQL_VERSION_MAJOR}.\${MYSQL_VERSION_MINOR}.\${MYSQL_VERSION_PATCH}
fi
fi
ssh -o StrictHostKeyChecking=no -i ${KEY_PATH} ${USER}@repo.ci.percona.com \
Expand Down

0 comments on commit 0df2a04

Please sign in to comment.