(2) The two tabs, shown above 'Branches' and 'Pull Requests' are these just filters set in Multibranch or defined programmatically as part of the github plugin?
Hi Guys,I'm looking to update the merge/review functionality of the P4 plugin and had a few questions:
(1) How does Multibranch determine a PR or Branch is closed, so that it is displayed with strikethrough the text? Is this part of the retrieve/observe mechanism in the scm-api plugin?
--Kind regards,Paul
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/f0ef7486-446f-4051-8a9f-d5423a739571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 12 June 2017 at 12:22, pallen <pal...@perforce.com> wrote:Hi Guys,I'm looking to update the merge/review functionality of the P4 plugin and had a few questions:this week I am pushing the traits changes... you may want to adopt those, plan accordingly.(1) How does Multibranch determine a PR or Branch is closed, so that it is displayed with strikethrough the text? Is this part of the retrieve/observe mechanism in the scm-api plugin?when the scm-api no longer returns the branch or pull request, then it is considered an orphaned branch.orphaned branch jobs cannot be deleted immediately because the orphaned branch strategy that the user configures may not be able to determine which branches are eligible for deletion until it has a complete list of orphaned branches (which means we need to wait for a full scan)Each SCMHeadCategory that your plugin enumerates will be given its own tab. You can control the names of these.Please read:It is the documentation for anyone wanting to implement SCM API support in an SCM plugin
On 12 June 2017 at 12:22, pallen <pal...@perforce.com> wrote:Hi Guys,I'm looking to update the merge/review functionality of the P4 plugin and had a few questions:this week I am pushing the traits changes... you may want to adopt those, plan accordingly.(1) How does Multibranch determine a PR or Branch is closed, so that it is displayed with strikethrough the text? Is this part of the retrieve/observe mechanism in the scm-api plugin?when the scm-api no longer returns the branch or pull request, then it is considered an orphaned branch.orphaned branch jobs cannot be deleted immediately because the orphaned branch strategy that the user configures may not be able to determine which branches are eligible for deletion until it has a complete list of orphaned branches (which means we need to wait for a full scan)Each SCMHeadCategory that your plugin enumerates will be given its own tab. You can control the names of these.Please read:It is the documentation for anyone wanting to implement SCM API support in an SCM plugin
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMxrJEF64Xt5%3DFReOGybeyb0OzFW-GG5ZSQGXB9qimpz5A%40mail.gmail.com.
Hi Stephen,
(1) Thank you - so if I understand correctly, if retrieve no longer finds it observer is not called and it appears crossed out.
(2) Should I implement my own SCMHeadCategory to for my P4Head (extends SCMHead)? If I need different types (e.g. 'Branches', 'Pull Requests') I need new implementations of SCMHead and a corresponding SCMHeadCategory?
I'm using scm-api 2.0.2 and a Jenkins version of 1.642.3
Kind regards,Paul
On 12 Jun 2017, at 13:18, Stephen Connolly <stephen.alan.connolly@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMxrJEF64Xt5%3DFReOGybeyb0OzFW-GG5ZSQGXB9qimpz5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--------------------------------------------------------------------------------
Perforce Software UK Ltd is registered in England and Wales as company no.
3816019 at the following address: West Forest Gate,
Wellington Road, Wokingham,
RG40 2AT, UK
--------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/2F8521F2-05D9-4A8C-BBC9-4C27675EC8CB%40perforce.com.
(2) Should I implement my own SCMHeadCategory to for my P4Head (extends SCMHead)? If I need different types (e.g. 'Branches', 'Pull Requests') I need new implementations of SCMHead and a corresponding SCMHeadCategory?
What do the docs say: https://github.com/jenkinsci/scm-api-plugin/blob/master/docs/implementation.adoc
Hint: I believe the docs are very explicit on that subject. There is, to my mind, an unambiguous answer directly to your question (somewhere in the middle third of the docs)
jenkins.scm.api.SCMSourceDescriptor should
provide the concrete instances of the jenkins.scm.api.SCMHeadCategory that
are potentially generated by their jenkins.scm.api.SCMSource instances.
Then each jenkins.scm.api.SCMSource instance
can filter down that list to the actual categories that may be returned by that specific source. For example, a GitHub source may return "Branches", "Pull Requests" and "Tags" but the user may have configured their specific source for a specific project to
only build "Branches" and "Tags".
I really am looking for people to find faults in the docs. If I keep giving people answers then I become the scalability issue. I would much rather that people can solve the problems by reading documentation. That means that my efforts deliver a multiple rather than everything being rate limited by my time and availability. By using the docs and suggesting improvements we make the whole community better.
;-)
protected SCMHeadCategory[] createCategories() { return new SCMSourceCategory[]{ new UncategorizedSCMSourceCategory( new NonLocalizable("Streams") // Better: Messages._AccurevSCMSource_StreamHeadCategory() ), new TagSCMHeadCategory( new NonLocalizable("Snapshots") // Better: Messages._AccurevSCMSource_SnapshotHeadCategory() ) }; }
return new SCMHeadCategory[]{ UncategorizedSCMHeadCategory.INSTANCE, ChangeRequestSCMHeadCategory.DEFAULT, TagSCMHeadCategory.DEFAULT };
--
You received this message because you are subscribed to the Google Groups "Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/B86AE584-8232-494B-A301-408058D85EF4%40perforce.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/CA%2BnPnMy41PauhcVgmPeSaKr1K%3DP1kLigqru_CJxy8kVuXxrnjA%40mail.gmail.com.