This Job DSL file is to configure the Bitbucket Branch Source plugin within Jenkins to scan for all repos within the INFRA project, and create jobs for all branches which contain a Jenkinsfile. As it's currently configured, this plugin is set to scan for new repos every 60 minutes.
These jobs will then be built when changes are pushed to Bitbucket, either to run tests, build source code or deploy artifacts etc. Using Jenkinsfile means your CICD processes are tied to your source code rather than managed elsewhere.
- Bitbucket Branch Source (in Jenkins)
- Post Webhooks for Bitbucket (in Bitbucket)
jenkins-bitbucket
username/password for Bitbucketjenkins-bitbucket-ssh
ssh private key with it's matching public key set up in Bitbucket under the Project's Access Keys