tet123/jenkins-jobs/job-dsl/ocp_system_test.groovy
Martin Medek e705ba3a3d
DBZ-5785 Modify ocp system tests to archive test results and logs (#4039)
DBZ-5785
Changed OCP testsuite job to pod. Added readiness probe to the pod description to indicate testsuite is finished.
Modified the testsuite script to save logs and trigger the readiness probe once finished.
Modified the OCP testsuite jenkins job to wait for the readiness probe and copy the testsuite logs.
Added report portal post step to ocp system pipeline
Moved script location in container from /testsuite to /root/testsuite
2022-11-15 20:46:11 +01:00

42 lines
2.2 KiB
Groovy

pipelineJob('ocp-system-test') {
displayName('System Tests inside OCP')
description('Runs System Tests inside OCP')
parameters {
stringParam('MAIL_TO', 'debezium-qe@redhat.com')
booleanParam('PRODUCT_BUILD', false, 'Is this a productised build?')
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('PULL_SECRET', 'rh-integration-quay-secret', 'Quay.io OpenShift secret')
stringParam('DOCKER_TAG', 'latest', 'Docker image tag')
stringParam('OCP_CREDENTIALS', 'openshift-dbz-creds', 'Jenkins credentials id')
stringParam('OCP_URL', '', 'Ocp url')
booleanParam('TEST_APICURIO_REGISTRY', false, 'Run tests with Apicurio Registry and Avro serialization')
booleanParam('STRIMZI_KC_BUILD', false, 'True -> use artifact server, false -> dbz connect image')
stringParam('DBZ_CONNECT_IMAGE', '', 'Debezium connect image')
stringParam('ARTIFACT_SERVER_IMAGE', '', 'Artifact server image')
stringParam('APICURIO_VERSION', '2.2.3.Final', 'Apicurio version')
stringParam('KAFKA_VERSION', '', 'Kafka version')
stringParam('STRZ_GIT_REPOSITORY', 'https://github.com/strimzi/strimzi-kafka-operator.git', 'Repository from which Strimzi is cloned')
stringParam('STRZ_GIT_BRANCH', 'main', 'A branch/tag from which Strimzi is built')
stringParam('STRIMZI_PREPARE_BUILD_NUMBER', '', 'Product build - Build from which strimzi operator zip is used. Default lastSuccessful')
stringParam('APIC_GIT_REPOSITORY', 'https://github.com/Apicurio/apicurio-registry-operator.git', 'Repository from which Apicurio is cloned')
stringParam('APIC_GIT_BRANCH', 'master', 'A branch/tag from which Apicurio is built')
stringParam('APICURIO_PREPARE_BUILD_NUMBER', '', 'Product build - Build from which apicurio operator zip is used. Default lastSuccessful')
}
definition {
cps {
script(readFileFromWorkspace('jenkins-jobs/pipelines/ocp_system_pipeline.groovy'))
sandbox()
}
}
}