From 4e15ad0536992e99935c16862f0c5b64006062c5 Mon Sep 17 00:00:00 2001 From: Rotaru Sergey Date: Sun, 14 Jun 2020 11:57:26 +0300 Subject: Implement disable discover_pr_origin In my opinion the best choise for default value of discover_pr_origion is not specified(None value) like it is done for bitbucket scm. Currently there is no way to disable this option for github scm. Added false value as one of valid value for this option, like is done for discover-pr-fork-strategy. In fact any of yaml specification false implementation should work. Change-Id: Ibc26d6b5c39b5455160ba5c84be99575b79fc102 --- .../fixtures/scm_github_no_origin_pr_discovery.xml | 59 ++++++++++++++++++++++ .../scm_github_no_origin_pr_discovery.yaml | 7 +++ 2 files changed, 66 insertions(+) create mode 100644 tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.xml create mode 100644 tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.yaml (limited to 'tests') diff --git a/tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.xml b/tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.xml new file mode 100644 index 00000000..d700a816 --- /dev/null +++ b/tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.xml @@ -0,0 +1,59 @@ + + + + + + All + false + false + + + + + + + + + + + false + + + + + + + true + -1 + -1 + + + + + + + gh-johndoe-foo + johndoe + foo + + + 1 + + + 1 + + + + + + + + + + + + + + Jenkinsfile + + diff --git a/tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.yaml b/tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.yaml new file mode 100644 index 00000000..7852137e --- /dev/null +++ b/tests/multibranch/fixtures/scm_github_no_origin_pr_discovery.yaml @@ -0,0 +1,7 @@ +name: 'demo-multibranch-github-no-fork-prs' +project-type: multibranch +scm: + - github: + repo: 'foo' + repo-owner: 'johndoe' + discover-pr-origin: no -- cgit