From 2a0d0e553fe5b6df3cf7ad389467ac5fbef62297 Mon Sep 17 00:00:00 2001 From: Eric Ball Date: Tue, 14 Dec 2021 17:07:08 -0800 Subject: Feat: Add JCasC managed config files Change-Id: Ibe1e731577cac990d078e03b4be21fdfc0c5b82c Issue-ID: CIMAN-33 Signed-off-by: Eric Ball --- .../custom/pypirc/config-params.yaml | 3 +++ .../managed-config-files/custom/pypirc/content | 31 ++++++++++++++++++++++ .../customizedCredentialMappings.sandbox.yaml | 8 ++++++ .../pypirc/customizedCredentialMappings.yaml | 8 ++++++ 4 files changed, 50 insertions(+) create mode 100644 jenkins-config/managed-config-files/custom/pypirc/config-params.yaml create mode 100644 jenkins-config/managed-config-files/custom/pypirc/content create mode 100644 jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.sandbox.yaml create mode 100644 jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.yaml (limited to 'jenkins-config/managed-config-files/custom/pypirc') diff --git a/jenkins-config/managed-config-files/custom/pypirc/config-params.yaml b/jenkins-config/managed-config-files/custom/pypirc/config-params.yaml new file mode 100644 index 000000000..3cc089443 --- /dev/null +++ b/jenkins-config/managed-config-files/custom/pypirc/config-params.yaml @@ -0,0 +1,3 @@ +--- +name: "pypirc" +comment: "PyPI config" diff --git a/jenkins-config/managed-config-files/custom/pypirc/content b/jenkins-config/managed-config-files/custom/pypirc/content new file mode 100644 index 000000000..6a0fcdcfd --- /dev/null +++ b/jenkins-config/managed-config-files/custom/pypirc/content @@ -0,0 +1,31 @@ +[distutils] +index-servers = + staging + release + pypi-test + pypi + +[staging] +repository: https://nexus3.onap.org/repository/PyPi.staging/ +username: $PYPI_STAGING_RELEASE_USR +password: $PYPI_STAGING_RELEASE_PSW + +[release] +repository: https://nexus3.onap.org/repository/PyPi.release/ +username: $PYPI_STAGING_RELEASE_USR +password: $PYPI_STAGING_RELEASE_PSW + +[wheel-alpine] +repository: https://nexus3.onap.org/repository/PyPi.wheel-alpine/ +username: $PYPI_STAGING_RELEASE_USR +password: $PYPI_STAGING_RELEASE_PSW + +[pypi-test] +repository: https://test.pypi.org/legacy/ +username: __token__ +password: $PYPI_TEST_TOKEN + +[pypi] +repository: https://pypi.org/ +username: __token__ +password: $PYPI_TOKEN diff --git a/jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.sandbox.yaml b/jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.sandbox.yaml new file mode 100644 index 000000000..ec22d0e0b --- /dev/null +++ b/jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.sandbox.yaml @@ -0,0 +1,8 @@ +--- +customizedCredentialMappings: + - credentialsId: "pypi-staging-release" + tokenKey: "PYPI_STAGING_RELEASE" + - credentialsId: "dummy" + tokenKey: "PYPI_TOKEN" + - credentialsId: "pypi-test-token" + tokenKey: "PYPI_TEST_TOKEN" diff --git a/jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.yaml b/jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.yaml new file mode 100644 index 000000000..894c65bde --- /dev/null +++ b/jenkins-config/managed-config-files/custom/pypirc/customizedCredentialMappings.yaml @@ -0,0 +1,8 @@ +--- +customizedCredentialMappings: + - credentialsId: "pypi-staging-release" + tokenKey: "PYPI_STAGING_RELEASE" + - credentialsId: "pypi-token" + tokenKey: "PYPI_TOKEN" + - credentialsId: "pypi-test-token" + tokenKey: "PYPI_TEST_TOKEN" -- cgit 1.2.3-korg