Hello,

You can achieve this with a Jenkinsfile per branch in your repository. Then 
create a new multibranch pipeline job in Jenkins pointing to your repository 
and you're done. See 
https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Multibranch+Plugin

Thomas

> Le 31 mai 2016 à 14:00, Tomáš Bohuněk <tbohu...@gmail.com> a écrit :
> 
> I would like to deploy and run each jar file for each feature branch. 
> 
> Project is written in Java and JavaScript. Jar file is built by maven. I need 
> to deploy somehow to one machine each of jar built from each feature branch.
> 
> 
>> On Tuesday, May 31, 2016 at 1:55:21 PM UTC+2, Mark Waite wrote:
>> I think you'll need to provide more details about the problem you're trying 
>> to solve, and the languages you're using to solve it.  For example, since 
>> you mentioned that you're deploying to tomcat, are you writing in Java or 
>> some other JRE supported language (like Scala)?
>> 
>> Are you building your jar with maven, gradle, ant, or some other build tool?
>> 
>> Mark Waite
>> 
>>> On Tue, May 31, 2016 at 5:46 AM Tomáš Bohuněk <tboh...@gmail.com> wrote:
>>> Sorry for mistake. You are right. I have one single git repository (one 
>>> project) with a few feature branches.
>>> 
>>> 
>>>> On Tuesday, May 31, 2016 at 1:44:19 PM UTC+2, Mark Waite wrote:
>>> 
>>>> Could you explain further what you mean by "multiple git repository (one 
>>>> project with few feature branches)"?
>>>> 
>>>> The phrase "multiple git repository" seems to be in conflict with the 
>>>> phrase "one project".  I typically place a project in a single git 
>>>> repository with a few feature branches as necessary.  Can you describe 
>>>> more about why you need multiple git repositories?
>>>> 
>>>> Thanks,
>>>> Mark Waite
>>>> 
>>> 
>>>>> On Tue, May 31, 2016 at 5:04 AM Tomáš Bohuněk <tboh...@gmail.com> wrote:
>>> 
>>>>> What do you recommend for deployment of multiple git repository (one 
>>>>> project with few feature branches). Final artifact is JAR with bundled 
>>>>> Tomcat application server. I usually run this JAR in Docker container. 
>>>>> What do you prefer?
>>>>> -- 
>>>>> You received this message because you are subscribed to the Google Groups 
>>>>> "Jenkins Users" group.
>>> 
>>>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>>>> email to jenkinsci-use...@googlegroups.com.
>>> 
>>>>> 
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/jenkinsci-users/911cbd52-c307-486d-b0bd-339ea40b8200%40googlegroups.com.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Jenkins Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to jenkinsci-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/jenkinsci-users/a5cf009f-289a-4945-ac5c-00fb6f52568e%40googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jenkinsci-users/ef93b121-e7e9-4591-aa2a-e31f57c49b32%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/8E6462C2-EC15-4164-B5CD-B04D50276E3D%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to