tet123/jenkins-jobs/job-dsl/release_debezium_nightly_image.groovy
Vojtech Juranek 5573bb51ed DBZ-5048 Rename GH repo with containes
Besides updating links to renamed GH repo, update also documentation and
replace 'Docker' with 'containers' when possible.
2022-07-12 13:16:53 +02:00

53 lines
1.4 KiB
Groovy

// Job definition to test PostgreSQL connector against different PostgreSQL versions
freeStyleJob('release-debezium-nightly-image') {
displayName('Debezium Nightly Image')
description('Build and deploy nightly image to the registry')
label('Slave')
properties {
githubProjectUrl('https://github.com/debezium/container-images')
}
logRotator {
daysToKeep(7)
numToKeep(10)
}
wrappers {
timeout {
noActivity(600)
}
credentialsBinding {
usernamePassword('DOCKER_USERNAME', 'DOCKER_PASSWORD', 'debezium-dockerhub')
}
credentialsBinding {
string('QUAYIO_CREDENTIALS', 'debezium-quay')
}
}
triggers {
upstream('release-deploy-snapshots')
}
publishers {
mailer('jpechane@redhat.com', false, true)
}
parameters {
stringParam('DEBEZIUM_REPOSITORY', 'debezium/debezium', 'Repository from which Debezium is built')
stringParam('DEBEZIUM_BRANCH', 'main', 'Branch used to build Debezium')
stringParam('IMAGES_REPOSITORY', 'https://github.com/debezium/container-images.git', 'Repository with Debezium Dockerfiles')
stringParam('IMAGES_BRANCH', 'main', 'Branch used for images repository')
}
scm {
git('$IMAGES_REPOSITORY', '$IMAGES_BRANCH')
}
steps {
shell(readFileFromWorkspace('jenkins-jobs/scripts/trigger-nightly-docker.sh'))
}
}