use the same Jenkinsfile for several github repositories

Viewed 537

I have 40-50 github repositories , each repo contain one maven job.

I want to create multibranch pipeline job for each repository.

can I use the same Jenkinsfile for all projects without add Jenkinsfile for each repository. (take it from another SCM repo) ?

I know that I can use shared library to create a full pipeline , but I prefer something cleaner.

1 Answers
Related