tet123/jenkins-jobs/job-dsl/ocp_downstream_apicurio_prepare.groovy

31 lines
1.3 KiB
Groovy
Raw Normal View History

2021-08-24 18:45:27 +02:00
pipelineJob('ocp-downstream-apicurio-prepare-job') {
displayName('Apicurio deployment preparation')
2021-08-24 18:45:27 +02:00
description('Republishes apicurio registry images to quay.io and replaces them in deployment descriptor')
properties {
githubProjectUrl('https://github.com/debezium/debezium')
}
parameters {
// QUAY CONFIG
stringParam('QUAY_CREDENTIALS', 'rh-integration-quay-creds', 'Quay.io credentials id')
stringParam('QUAY_ORGANISATION', '', 'Organisation where images are copied')
2021-08-24 18:45:27 +02:00
// APICURIO CONFIG
stringParam('APIC_RESOURCES_ARCHIVE_URL', '', 'URL to productised apicurio sources')
stringParam('APIC_RESOURCES_DEPLOYMENT_DESCRIPTOR', 'install.yaml', 'Descriptor for deployment')
textParam('APIC_IMAGES', '', 'List of productised apicurio images')
2021-08-24 18:45:27 +02:00
// DEBEZIUM CONFIG
stringParam('DBZ_GIT_REPOSITORY', 'https://github.com/debezium/debezium.git', 'Repository from which Debezium sources are cloned')
stringParam('DBZ_GIT_BRANCH', 'master', 'A branch/tag of Debezium sources')
// EXTRA CONFIG
booleanParam('PUSH_IMAGES', true, 'Push images to quay.io')
2021-08-24 18:45:27 +02:00
}
definition {
cps {
script(readFileFromWorkspace('jenkins-jobs/pipelines/downstream_apicurio_prepare_pipeline.groovy'))
sandbox()
}
}
}