tet123/jenkins-jobs/job-dsl/release_debezium_nightly_image.groovy
Vojtech Juranek d38f9444c4 DBZ-6216 Remove Docker credential
Remove docker credentials and login to docker hub from scripts and jobs.
As this is in separate commit, it can be easily reverted in case we
want to publish to docker hub again in the future.
2023-03-23 13:29:19 +01:00

50 lines
1.3 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 {
string('QUAYIO_CREDENTIALS', 'debezium-quay')
}
}
triggers {
upstream('release-deploy_snapshots_pipeline')
}
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'))
}
}