2020-01-24 15:30:27 +02:00
|
|
|
import groovy.transform.Field
|
|
|
|
|
|
|
|
@Field String STEP_NAME = getClass().getName()
|
2021-11-15 15:20:20 +02:00
|
|
|
@Field String METADATA_FILE = 'metadata/kubernetesDeploy.yaml'
|
2020-01-24 15:30:27 +02:00
|
|
|
|
|
|
|
void call(Map parameters = [:]) {
|
2020-03-17 10:19:09 +02:00
|
|
|
List credentials = [
|
|
|
|
[type: 'file', id: 'kubeConfigFileCredentialsId', env: ['PIPER_kubeConfig']],
|
2021-06-11 10:41:03 +02:00
|
|
|
[type: 'file', id: 'dockerConfigJsonCredentialsId', env: ['PIPER_dockerConfigJSON']],
|
2020-03-17 10:19:09 +02:00
|
|
|
[type: 'token', id: 'kubeTokenCredentialsId', env: ['PIPER_kubeToken']],
|
|
|
|
[type: 'usernamePassword', id: 'dockerCredentialsId', env: ['PIPER_containerRegistryUser', 'PIPER_containerRegistryPassword']],
|
2022-06-29 12:00:37 +02:00
|
|
|
[type: 'token', id: 'githubTokenCredentialsId', env: ['PIPER_githubToken']],
|
2020-03-17 10:19:09 +02:00
|
|
|
]
|
|
|
|
piperExecuteBin(parameters, STEP_NAME, METADATA_FILE, credentials)
|
2020-01-24 15:30:27 +02:00
|
|
|
}
|