[SEBA-451]
Automation for publishing python modules to PyPI
Change-Id: If93f927ba61838b7e72b3a447a3144c5bfa417ef
diff --git a/jjb/cord-macros.yaml b/jjb/cord-macros.yaml
index 4d05c2f..68b057d 100644
--- a/jjb/cord-macros.yaml
+++ b/jjb/cord-macros.yaml
@@ -119,3 +119,25 @@
file-paths:
- compare-type: REG_EXP
pattern: '{file-include-regexp}'
+
+# wrapper to provide pypi config file
+
+- wrapper:
+ name: cord-pypi-wrapper
+ wrappers:
+ - mask-passwords
+ - timeout:
+ type: absolute
+ timeout: '{build-timeout}'
+ timeout-var: 'BUILD_TIMEOUT'
+ fail: true
+ - timestamps
+ - ssh-agent-credentials:
+ users:
+ - '{jenkins-ssh-credential}'
+ - config-file-provider:
+ files:
+ - file-id: pypirc
+ target: '$HOME/.pypirc'
+ - file-id: pipconf
+ target: '$HOME/.config/pip/pip.conf'