Pull Request Builder Plugin

Is any of the developer plugins used. The documentation says that it adds some environment variables to the build environment, but if I repeat them, they are all empty.

echo "${sourceBranch}"
echo "${targetBranch}"
echo "${sourceRepositoryOwner}"
echo "${sourceRepositoryName}"
echo "${pullRequestId}"
echo "${destinationRepositoryOwner}"
echo "${destinationReposotryName}"
echo "${pullRequestTitle}"
echo "${sourceCommitHash}"

This plugin does nothing for me. Here is my configuration. I choose git because SCM [poll scm not selected]

RepositoryUrl:ssh://git@stash-eng.abc.com:7999/mytool/my_tools_demo.git
Refspec:\+refs/pull-requests/*:refs/remotes/origin/pr/*
Branch Specifier:-origin/pr/${pullRequestId}/from

Then I will check the "Builder of requests for the stamp collector" checkbox and below - the value for diff fields

Cron:H/2 * * * *
Stash Host:stash-eng.abc.com
Stash Credentials:..........
Project:mytool
Repository Name:my_tools_demo

He still does nothing. No, I see any thing related to the plugin in magazines.

+4
source share
2 answers

I use this plugin in my company and it works well.

In my Stash environment, all project names are uppercase.

, ? ( " " )

, , Jenkins?

test this please

PR Stash.

0

Source: https://habr.com/ru/post/1624231/


All Articles