mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-30 05:59:39 +02:00
Add reference to docker plugin if kubernetes is present
This commit is contained in:
parent
816256c266
commit
ef294eba71
@ -18,6 +18,15 @@ class TemplateHelper {
|
||||
def t = ''
|
||||
t += 'The step depends on the following Jenkins plugins\n\n'
|
||||
def filteredDeps = deps.findAll { dep -> dep != 'UNIDENTIFIED' }
|
||||
|
||||
if(filteredDeps.contains('kubernetes')) {
|
||||
// The docker plugin is not detected by the tests since it is not
|
||||
// handled via step call, but it is added to the environment.
|
||||
// Hovever kubernetes plugin and docker plugin are closely related,
|
||||
// hence adding docker if kubernetes is present.
|
||||
filteredDeps.add('docker')
|
||||
}
|
||||
|
||||
if(filteredDeps.isEmpty()) {
|
||||
t += '* <none>\n'
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user