How can I create global macros and templates in jenkins job builder?

0 votes

This is my Jenkins Job Builder Directory structure:

jenkins
    ---global-defaults.yaml
    ---global-macros.yaml
    ---global-templates.yaml
    ---projectfolderA
     | ---projectA.yaml

over here my projectA.yaml can't find templates and macros if they are not int he projectAfolder, though it can still find global-defaults

Can I somehow get project.yaml files in sub folders to recognise upper level templates and macros?

Apr 2, 2018 in Jenkins by shubham
• 6,480 points
187 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

you can append the path to the directory where all the logic is stored when you want to update the jobs

jenkins-jobs --conf config_file update path_to_project_folder:path_to_globals_folder
answered Apr 2, 2018 by ajs3033
• 7,000 points

Related Questions In Jenkins

0 votes
1 answer

How to create backup and copy files in jenkins?

Hey @Anisha, all you need to do is ...READ MORE

answered Feb 16 in Jenkins by Anjali
93 views
0 votes
1 answer

How can I exchange jobs between 2 different Jenkins instances?

java -jar jenkins-cli.jar -s http://server get-job myjob ...READ MORE

answered Jul 6, 2018 in Jenkins by Sophie may
• 9,050 points
22 views
0 votes
1 answer

How Can I measure Jenkins Build Performance?

If you go to the Jenkins page ...READ MORE

answered Jul 16, 2018 in Jenkins by Kalgi
• 2,620 points
27 views
0 votes
1 answer

How can I point Jenkins to another .jenkins home directory?

I think this can help you out. Set ...READ MORE

answered Jul 19, 2018 in Jenkins by Kalgi
• 2,620 points
75 views
+13 votes
2 answers
0 votes
1 answer
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 6,900 points
1,050 views
0 votes
1 answer

Which is better jenkins of TFS 2015 for CI/CD?

Visual Studio and TFS have been using ...READ MORE

answered Aug 21, 2018 in Jenkins by ajs3033
• 7,000 points
171 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.