"Jenkinsfile" location in a gradle project

8 views
Skip to first unread message

judaondo

unread,
Feb 24, 2020, 5:13:18 AM2/24/20
to Jenkins Users
Hello, 

I have some gradle projects and I have the Jenkinsfile related to these projects outside that projects. 

I have a git repo with the gradle project and another git repo with Jenkinsfiles.

Should these Jenkinsfile be located inside gradle repositories, like in this example (https://github.com/jstrachan/spring-boot-web-gradle)? In this a good practice?

Thank you.


Dirk Heinrichs

unread,
Feb 24, 2020, 5:23:45 AM2/24/20
to jenkins...@googlegroups.com
Am Montag, den 24.02.2020, 02:13 -0800 schrieb judaondo:

Should these Jenkinsfile be located inside gradle repositories, like in this example (https://github.com/jstrachan/spring-boot-web-gradle)? In this a good practice?

The Jenkinsfile is what tells a "Multibranch Pipeline" job how that pipeline should look like for each branch of a given repo. No Jenkinsfile, no pipeline. So yes, it should be in the same repo.

Bye...

Dirk
--
Dirk Heinrichs
Senior Systems Engineer, Delivery Pipeline
OpenText ™ Discovery | Recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer Gordon Davies, Madhu Ranganathan, Christian Waida, Registergericht Amtsgericht Bonn, Registernummer HRB 10646
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht gestattet.
Reply all
Reply to author
Forward
0 new messages