Turns out my eyes were fooling me. Yes, the ref is contained in the webhook JSON received from Azure DevOps. I just haven't figured out a way to extract that value from the JSON. If anyone has any ideas, I'm all ears.
thanks On Thursday, November 19, 2020 at 3:38:55 PM UTC-5 David Maul wrote: > Thanks Richard. Your comments make sense. After hours of not seeing the > correct ref, now I believe I am seeing it. I must have changed > something...! Thanks for your attention. > > On Thursday, November 19, 2020 at 2:22:14 PM UTC-5 Richard Bywater wrote: > >> Azure DevOps is pretty new compared to the other options and so it's >> probably a case of that it's not been well enough used for someone to >> consider writing a plugin to support it. These plugins are generally >> written for and by the community and so it requires someone to put up their >> hand to write it. I'd say the fact it's a paid service also makes it harder >> to support as there's now a cost factor to maintaining it. >> >> As to your merge issue, I could be wrong but I think the plugins expect a >> merged version of the code to be presented by the SCM provider. Does Azure >> DevOps present a ref which contains a merged result? >> >> Richard. >> >> >> On Fri, 20 Nov 2020, 5:02 AM David Maul, <[email protected]> wrote: >> >>> Azure DevOps hosts Git repos, so I consider them a SCM provider. >>> >>> I have pull requests emanating from Azure Repos, and arriving (via >>> smee.io broker) at my local Jenkins infrastructure (not in cloud). I >>> am trying to us Multibranch pipeline job to build those PRs, but I cannot >>> figure out how to get it to build the "merged" commit. It currently only >>> builds the source branch and the target branch, but not the "what if I >>> merged the two", which is what a PR reviewer wants to see. Any help or >>> pointers you might have would be appreciated. >>> >>> On Thursday, November 19, 2020 at 10:54:59 AM UTC-5 slide wrote: >>> >>>> Hi David, >>>> >>>> Most of those are SCM providers. Azure in and of itself is not an SCM >>>> provider. What type of functionality are you looking for? >>>> >>>> Regards, >>>> >>>> Alex >>>> >>>> On Thu, Nov 19, 2020, 08:36 David Maul <[email protected]> wrote: >>>> >>>>> Mailer left out my image. Wondering what the approach is when the >>>>> cloud repo is Azure. From jenkins documentation: >>>>> >>>>> *Supporting Pull Requests* >>>>> >>>>> <https://www.jenkins.io/doc/book/pipeline/multibranch/#supporting-pull-requests> >>>>> >>>>> Multibranch Pipelines can be used for validating pull/change requests >>>>> with the appropriate plugin. This functionality is provided by the >>>>> following plugins: >>>>> >>>>> - >>>>> >>>>> GitHub Branch Source >>>>> <https://plugins.jenkins.io/github-branch-source> >>>>> - >>>>> >>>>> Bitbucket Branch Source >>>>> <https://plugins.jenkins.io/cloudbees-bitbucket-branch-source> >>>>> - >>>>> >>>>> GitLab Branch Source >>>>> <https://plugins.jenkins.io/gitlab-branch-source> >>>>> - >>>>> >>>>> Gitea <https://plugins.jenkins.io/gitea> >>>>> - >>>>> >>>>> Tuleap Git Branch Source >>>>> <https://plugins.jenkins.io/tuleap-git-branch-source> >>>>> - >>>>> >>>>> AWS CodeCommit Jobs >>>>> <https://plugins.jenkins.io/aws-codecommit-jobs> >>>>> >>>>> >>>>> On Thursday, November 19, 2020 at 10:33:14 AM UTC-5 David Maul wrote: >>>>> >>>>>> Jenkins has a plugin for pull requests from most cloud services: >>>>>> Why not Azure? >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>> 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/2228b699-7fc8-412e-9ce7-02f3ad85a9ffn%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/jenkinsci-users/2228b699-7fc8-412e-9ce7-02f3ad85a9ffn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> -- >>> 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/183f4ff7-5016-4c30-9337-fb6cf7398221n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/jenkinsci-users/183f4ff7-5016-4c30-9337-fb6cf7398221n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- 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/560adcaf-2693-480c-abd0-66771b0195a8n%40googlegroups.com.
