| |
@@ -122,6 +122,7 @@
|
| |
project_name='invalid',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='jenkins')
|
| |
self.assertIsNone(output)
|
| |
trigger_jenk.assert_not_called()
|
| |
@@ -135,6 +136,7 @@
|
| |
project_name='test',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='jenkins')
|
| |
trigger_jenk.assert_not_called()
|
| |
|
| |
@@ -147,6 +149,7 @@
|
| |
project_name='forks/foo/test',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='jenkins')
|
| |
trigger_jenk.assert_not_called()
|
| |
|
| |
@@ -554,6 +557,7 @@
|
| |
project_name='test',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='travis')
|
| |
self.assertIsNone(output)
|
| |
trigger_jenk.assert_not_called()
|
| |
@@ -565,6 +569,7 @@
|
| |
project_name='forks/foo/test',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='travis')
|
| |
self.assertIsNone(output)
|
| |
trigger_jenk.assert_not_called()
|
| |
@@ -576,6 +581,7 @@
|
| |
project_name='test',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='jenkins')
|
| |
self.assertIsNone(output)
|
| |
trigger_jenk.assert_called_once_with(
|
| |
@@ -584,7 +590,8 @@
|
| |
job=u'pagure',
|
| |
project_path=u'test.git',
|
| |
token=u'random_token',
|
| |
- url=u'https://ci.server.org/'
|
| |
+ url=u'https://ci.server.org/',
|
| |
+ branch_to='master',
|
| |
)
|
| |
|
| |
@patch('pagure.lib.tasks_services.trigger_jenkins_build')
|
| |
@@ -594,6 +601,7 @@
|
| |
project_name='forks/foo/test',
|
| |
cause='PR#ID',
|
| |
branch='feature',
|
| |
+ branch_to='master',
|
| |
ci_type='jenkins')
|
| |
self.assertIsNone(output)
|
| |
trigger_jenk.assert_called_once_with(
|
| |
@@ -602,7 +610,8 @@
|
| |
job=u'pagure',
|
| |
project_path=u'forks/foo/test.git',
|
| |
token=u'random_token',
|
| |
- url=u'https://ci.server.org/'
|
| |
+ url=u'https://ci.server.org/',
|
| |
+ branch_to='master',
|
| |
)
|
| |
|
| |
|
| |
In addition to the repo and branch from which the PR originates from and
either the commit hash or the PR id, include the target branch of the PR
Fixes https://pagure.io/pagure/issue/4317
Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr