I am trying to implement CI/CD pipeline for my Spring Boot microservice deployment. Here I am planning to use Kubernetes and Jenkins for that. And I have one on-premise server which I am using for my SVN code repository. I am using SVN for version control. And also for keeping image registry, I am planning to use Dockerhub. I am trying to implement when there is a commit to my SVN code repository, then Jenkins pipeline job need to trigger, compile, test, build, package, build Docker image, pushing to Dockerhub and deploying into Kubernetes cluster.
Here my confusion is that:
1. When I am adding the URL for SVN Dockerhub and credentials, is possible to add these all in my Jenkinsfile ?
The reason for doubt is that, when I am exploring implementation example, YouTube videos are showing checking SCM option in pipeline creation and pasting code repository URL (GITHUB URL) within that. So I am totally confused about whether I need to do like that way or is possible to add Docker Hub and svn url in Jenkinsfile?
2. If adding in Jenkinsfile is not possible, then where I can add my Dockerhub URL and credentials for image pushing and pulling process?