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

61 lines
3.5 KiB
Groovy

pipelineJob('ocp-downstream-trigger-all-prepare') {
displayName('Trigger Downstream Preparations')
description('Triggers downstream preparation jobs')
parameters {
stringParam('LABEL', '', 'Optional label for the preparation jobs')
booleanParam('EXECUTE_AS', false, 'Execute downstream Artifact Server prepare')
booleanParam('EXECUTE_STRIMZI', false, 'Execute AMQ Stream Deployment Preparation')
booleanParam('EXECUTE_APICURIO', false, 'Execute Apicurio deployment preparation')
booleanParam('EXECUTE_RHEL', false, 'Execute AMQ Streams on RHEL Preparation')
stringParam('MAIL_TO', 'debezium-qe@redhat.com')
// QUAY CONFIG
stringParam('QUAY_CREDENTIALS', 'debezium-quay-creds', 'Quay.io credentials id')
stringParam('QUAY_ORGANISATION', 'debezium', 'Organisation where images are copied')
// DEBEZIUM CONFIG
stringParam('DBZ_GIT_REPOSITORY', 'https://github.com/debezium/debezium.git', 'Repository from which Debezium sources are cloned')
stringParam('DBZ_GIT_BRANCH', 'main', 'A branch/tag of Debezium sources')
stringParam('DBZ_GIT_REPOSITORY_DB2', 'https://github.com/debezium/debezium-connector-db2.git', 'Repository from which Debezium DB2 sources are cloned')
stringParam('DBZ_GIT_BRANCH_DB2', 'main', 'A branch/tag of Debezium DB2 sources')
// OCP STRIMZI
stringParam('STRZ_RESOURCES_ARCHIVE_URL', '', 'OCP Downstream strimzi - URL to productised strimzi sources')
stringParam('STRZ_RESOURCES_DEPLOYMENT_DESCRIPTOR', '060-Deployment-strimzi-cluster-operator.yaml', 'OCP Downstream strimzi - Descriptor for cluster-operator deployment')
textParam('STRZ_IMAGES', '', 'OCP Downstream strimzi - List of productised strimzi images')
// DEBEZIUM CONNECT IMAGE CONFIG
booleanParam('STRZ_DBZ_CONNECT_BUILD', true, 'OCP Downstream strimzi - Also build debezium images')
textParam('STRZ_DBZ_CONNECTOR_ARCHIVE_URLS', '', 'OCP Downstream strimzi - List of URLs to productised Debezium connectors')
textParam('STRZ_DBZ_EXTRA_LIBS', '', 'Downstream Strimzi, RHEL - List of extra libraries added to connectors')
// APICURIO
stringParam('APIC_RESOURCES_ARCHIVE_URL', '', 'URL to productised apicurio sources')
stringParam('APIC_RESOURCES_DEPLOYMENT_DESCRIPTOR', 'install.yaml', 'Descriptor for deployment')
booleanParam('PUSH_IMAGES', true, 'Apicurio - Push images to quay.io')
textParam('APIC_IMAGES', '', 'List of productised apicurio images')
// RHEL
booleanParam('AUTO_TAG', true, 'RHEL - Use automatically generated tag')
textParam('EXTRA_IMAGE_TAGS', 'latest', 'RHEL - List of extra texts tags for multiple images')
stringParam('RHEL_IMAGE', 'registry.access.redhat.com/ubi8:latest', 'Base RHEL image')
stringParam('KAFKA_URL', '', 'RHEL - AMQ streams kafka')
// ARTIFACT SERVER
textParam('AS_DBZ_EXTRA_LIBS', '', 'Artifact Server - List of extra libraries added to connectors')
textParam('AS_EXTRA_IMAGE_TAGS', 'latest', 'Artifact Server - List of extra texts tags for multiple images')
booleanParam('AS_AUTO_TAG', true, 'Artifact Server - Use automatically generated tag')
textParam('AS_DBZ_CONNECTOR_ARCHIVE_URLS', '', 'Artifact Server - List of URLs to productised Debezium connectors')
}
definition {
cps {
script(readFileFromWorkspace('jenkins-jobs/pipelines/downstream_preparations_trigger_pipeline.groovy'))
sandbox()
}
}
}