Adding ability to use the mask passwords plugin
Change-Id: I9a6d90399a6a1d6cfd07a5d4694e13b1060a498d Reviewed-on: https://review.openstack.org/14976 Reviewed-by: James E. Blair <corvus@inaugust.com> Approved: Clark Boylan <clark.boylan@gmail.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
211cd36318
commit
7e0ddbe8e9
@ -93,6 +93,21 @@ def ansicolor(parser, xml_parent, data):
|
||||
'hudson.plugins.ansicolor.AnsiColorBuildWrapper')
|
||||
|
||||
|
||||
def mask_passwords(parser, xml_parent, data):
|
||||
"""yaml: mask-passwords
|
||||
Hide passwords in the console log.
|
||||
Requires the Jenkins `Mask Passwords Plugin.
|
||||
<https://wiki.jenkins-ci.org/display/JENKINS/Mask+Passwords+Plugin>`_
|
||||
|
||||
Example::
|
||||
|
||||
wrappers:
|
||||
- mask-passwords
|
||||
"""
|
||||
XML.SubElement(xml_parent,
|
||||
'com.michelin.cio.hudson.plugins.maskpasswords.MaskPasswordsBuildWrapper')
|
||||
|
||||
|
||||
class Wrappers(jenkins_jobs.modules.base.Base):
|
||||
sequence = 80
|
||||
|
||||
|
1
setup.py
1
setup.py
@ -89,6 +89,7 @@ setup(name='jenkins_job_builder',
|
||||
'timeout=jenkins_jobs.modules.wrappers:timeout',
|
||||
'timestamps=jenkins_jobs.modules.wrappers:timestamps',
|
||||
'ansicolor=jenkins_jobs.modules.wrappers:ansicolor',
|
||||
'mask-passwords=jenkins_jobs.modules.wrappers:mask_passwords',
|
||||
],
|
||||
'jenkins_jobs.modules': [
|
||||
'assignednode=jenkins_jobs.modules.assignednode:AssignedNode',
|
||||
|
Loading…
x
Reference in New Issue
Block a user