Currently I am trying to build CI/CD pipeline for my micro service deployment. I created declarative pipeline script including repository pull, build, test, Kubernetes deployment etc in different stages. And I am trying to trigger post-commit script that need to initiate Jenkins job for each commit to repository.
When I am trying to create Jenkins job, I chose the New -> Free Style option. But there is no area where I can add my pipeline script.
And when I chose New -> Pipeline, I have space for adding pipeline script. But I don't have the option of Source code management for adding my repository checkout link and all.
When I observed, I only seeing source code management option in free style. But it don't have any area for adding my pipeline script.
Here I need to add my declarative pipeline script and also I need to refer my SVN source code management. And I am storing script in Jenkins itself.I am not using Jenkinsfile (Poll From SCM option). How I can add in jenkins job ? Do I need to add in Free style or pipeline?