You might consider fingerprinting the artifacts then you can use the Jenkins fingerprint lookup to steer what created that artifact
On Tue, May 31, 2016, 12:07 PM Thomas Zoratto <[email protected]> wrote: > Tomáš was talking about Docker so let’s take it for example. You could > build a new Docker image for each one of your branches and tag it with the > branch name, build number or whatever you prefer. > > Regarding Nexus or Maven specifically you could use a plugin such as the > Maven build number plugin for that purpose. > > It’s just my opinion based on little experience, there are probably better > methods (or workflows that don’t raise this question) out there. > > But honestly, I think this isn’t directly related to Jenkins. > > Good luck ! > > Le 31 mai 2016 à 18:59, Philipp Meier <[email protected]> a écrit : > > Hi, > > The interesting question for me is how to handle and identify the > different artifacts which are built by the several branches. I. e. in Maven > you specify a version 1.0.0-snapshot and this is then used to build the > Jar. When you're going to deploy this on a machine or a repository (i. e. > Nexus) you won't be able to identify from which branch it was built. How do > you handle this? > > Best, Philipp > > On Tuesday, 31 May 2016 18:16:34 UTC+2, Thomas Zoratto wrote: >> >> 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 <[email protected]> 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 <[email protected]> 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 <[email protected]> >>>>> 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 [email protected]. >>>>> >>>>> >>>>>> To view this discussion on the web visit >>>>>> https://groups.google.com/d/msgid/jenkinsci-users/911cbd52-c307-486d-b0bd-339ea40b8200%40googlegroups.com >>>>>> <https://groups.google.com/d/msgid/jenkinsci-users/911cbd52-c307-486d-b0bd-339ea40b8200%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>>> . >>>>>> 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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/jenkinsci-users/a5cf009f-289a-4945-ac5c-00fb6f52568e%40googlegroups.com >>>> <https://groups.google.com/d/msgid/jenkinsci-users/a5cf009f-289a-4945-ac5c-00fb6f52568e%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> 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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jenkinsci-users/ef93b121-e7e9-4591-aa2a-e31f57c49b32%40googlegroups.com >> <https://groups.google.com/d/msgid/jenkinsci-users/ef93b121-e7e9-4591-aa2a-e31f57c49b32%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/a9af9134-fdfa-4bbc-aa1a-788417f71e1c%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/a9af9134-fdfa-4bbc-aa1a-788417f71e1c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/0DD5A861-A07D-4AB2-9BD1-A5654F7CB8BF%40gmail.com > <https://groups.google.com/d/msgid/jenkinsci-users/0DD5A861-A07D-4AB2-9BD1-A5654F7CB8BF%40gmail.com?utm_medium=email&utm_source=footer> > . > 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGhz4eozO3msZ2YW6ybvwy%2BF0VuviZ0wKe5s41k7J%3Duew%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
