Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
sarora1
Creator
Creator

Jenkins/Maven - How to build multiple jobs in a folder

Currently, I am building and deploying one job like this 

deploy -Pcloud-publisher -X -pl jobs/process/quickstart_dev/file_to_file_0.1 -fae -amd

Is it possible to build only the jobs under folder quickstart_dev with something like this

deploy -Pcloud-publisher -X -pl jobs/process/quickstart_dev/* -fae -amd

0683p000009M7gd.png

1 Solution

Accepted Solutions
Anonymous
Not applicable

IMO you can't do exactly that. I see 2 workarounds:

 

a) create a master job per folder which embedds the others as subjobs (i.e. dependencies) and then deploy -pl -amd that one only

 

or

 

b) add an include instruction (with relative path and stars) inside your POM:

https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

https://help.talend.com/reader/1m9g2R1Yu5aRrNIGSXsmTA/GaE1CVDc1z7xWFasLr0PLw

View solution in original post

3 Replies
sarora1
Creator
Creator
Author

@jclarysse @xdshi Help!

Anonymous
Not applicable

IMO you can't do exactly that. I see 2 workarounds:

 

a) create a master job per folder which embedds the others as subjobs (i.e. dependencies) and then deploy -pl -amd that one only

 

or

 

b) add an include instruction (with relative path and stars) inside your POM:

https://maven.apache.org/plugins/maven-resources-plugin/examples/include-exclude.html

https://help.talend.com/reader/1m9g2R1Yu5aRrNIGSXsmTA/GaE1CVDc1z7xWFasLr0PLw

sarora1
Creator
Creator
Author

Option a is what I ended up doing but good to know about option b.