Update Jenkinsfile

This commit is contained in:
Taylor Christie 2023-12-04 12:22:08 -07:00 committed by GitHub
parent f1718eae37
commit 55f71d6b81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
Jenkinsfile vendored
View File

@ -16,8 +16,8 @@ pipeline {
path: "ci/general",
engineVersion: 1,
secretValues: [
[envVar: 'PIP_INDEX_URL', vaultKey: 'SONATYPE_DEPLOYMENT_PIP_INDEX_URL'],
[envVar: 'PIP_INDEX', vaultKey: 'SONATYPE_DEPLOYMENT_PIP_INDEX']
[envVar: 'PIP_USER', vaultKey: 'SONATYPE_DEPLOYMENT_USER'],
[envVar: 'PIP_PASSWORD', vaultKey: 'SONATYPE_DEPLOYMENT_USER_PASSCODE']
]
]
]]) {
@ -33,8 +33,8 @@ pipeline {
--insecure=true \
--insecure-registry=docker-registry.default:5000 \
--cache=true \
--build-arg PIP_INDEX_URL=${PIP_INDEX_URL} \
--build-arg PIP_INDEX=${PIP_INDEX} \
--build-arg PIP_INDEX_URL=https://${PIP_USER}:${PIP_PASSWORD}@artifact.it.getyardstick.com/repository/meazurelearning-pypi/simple \
--build-arg PIP_INDEX=https://${PIP_USER}:${PIP_PASSWORD}@artifact.it.getyardstick.com/repository/meazurelearning-pypi/pypi \
--cache-repo=docker-registry.default:5000/${REPOSITORY} \
--destination ${env.REPOSITORY}:\$(echo ${BRANCH_NAME} | grep -Eo 'feature/([A-Za-z]+-[0-9]*)' | grep -Eo '[A-Za-z]+-[0-9]*' || \
echo ${BRANCH_NAME} | grep -Eo '(release|hotfix)/[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+' | grep -Eo '[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+' || \