├── demo ├── .gitignore ├── JENKINS_HOME │ ├── jenkins.install.UpgradeWizard.state │ ├── jenkins.model.JenkinsLocationConfiguration.xml │ └── credentials.xml ├── Dockerfile └── Makefile ├── .gitattributes ├── .github ├── release-drafter.yml ├── CODEOWNERS ├── workflows │ ├── auto-merge-safe-deps.yml │ ├── close-bom-if-passing.yml │ ├── cd.yaml │ └── jenkins-security-scan.yml ├── dependabot.yml └── PULL_REQUEST_TEMPLATE.md ├── src ├── test │ ├── resources │ │ ├── raw │ │ │ └── __files │ │ │ │ ├── body-foo-bar.txt-Tdzng.txt │ │ │ │ ├── body-fu-bar.txt-b4k4I.txt │ │ │ │ ├── body-foo-manchu.txt-PKdJT.txt │ │ │ │ ├── body-fu-manchu.txt-Meind.txt │ │ │ │ ├── body-c0e024f89969b976da165eecaa71e09dc60c3da1-CONTRIBUTING.adoc-ofmrZ.txt │ │ │ │ ├── body-e301dc6d5bb7e6e18d80e85f19caa92c74e15e96-README.md-faFdc.txt │ │ │ │ ├── body-8f1314fc3c8284d8c6d5886d473db98f2126071c-README.md-tHUzO.txt │ │ │ │ └── body-c0e024f89969b976da165eecaa71e09dc60c3da1-README.md-e2ju7.txt │ │ ├── api │ │ │ ├── contextualization │ │ │ │ ├── body-repos-cloudbeers-multibranch-demo-pulls.json │ │ │ │ └── body-repos-cloudbeers-multibranch-demo-branches.json │ │ │ ├── __files │ │ │ │ ├── body-octocat-hello-world-topics.json │ │ │ │ ├── body-yolo-tags-non-existent-tag.json │ │ │ │ ├── body-yolo-topics.json │ │ │ │ ├── body-yolo-collaborators-ug5Pu.json │ │ │ │ ├── body-users-notauser.json │ │ │ │ ├── body-octocat-github-branch-source-plugin-topics.json │ │ │ │ ├── body-heads-master-notfound.json │ │ │ │ ├── body-yolo-archived-topics.json │ │ │ │ ├── body-heads-master.json │ │ │ │ ├── body-yolo-tags-existent-tag.json │ │ │ │ ├── body-yolo-branches-c2Eko.json │ │ │ │ ├── body-orgs-cloudbeers-teams-justice-league-AHFpl.json │ │ │ │ ├── body-rate_limit-B5BGx.json │ │ │ │ ├── body-yolo-tags-existent-multiple-tags.json │ │ │ │ ├── body-orgs-cloudbeers-aBLgn.json │ │ │ │ ├── body-fu-bar.txt-hkgiE.json │ │ │ │ ├── body-contents-README.md-xDNvv.json │ │ │ │ ├── body-contents-README.md-ffQNT.json │ │ │ │ └── body-contents-README.md-qNsrm.json │ │ │ ├── branches │ │ │ │ └── _files │ │ │ │ │ └── body-yolo-branches-non-existent-branch.json │ │ │ └── mappings │ │ │ │ └── mapping-yolo-collaborators-ug5Pu.json │ │ └── org │ │ │ └── jenkinsci │ │ │ └── plugins │ │ │ └── github_branch_source │ │ │ ├── GitHubSCMNavigatorTraitsTest │ │ │ ├── modern.xml │ │ │ ├── basic_cloud.xml │ │ │ ├── build_011111.xml │ │ │ ├── build_101111.xml │ │ │ ├── build_110111.xml │ │ │ ├── build_111011.xml │ │ │ ├── build_111101.xml │ │ │ ├── build_111110.xml │ │ │ ├── build_111111.xml │ │ │ ├── build_000000.xml │ │ │ ├── build_000001.xml │ │ │ ├── build_000010.xml │ │ │ ├── build_000011.xml │ │ │ ├── build_000100.xml │ │ │ ├── build_000101.xml │ │ │ ├── build_000110.xml │ │ │ ├── build_000111.xml │ │ │ ├── build_001000.xml │ │ │ ├── build_001001.xml │ │ │ ├── build_001010.xml │ │ │ ├── build_001011.xml │ │ │ ├── build_001100.xml │ │ │ ├── build_001101.xml │ │ │ ├── build_001110.xml │ │ │ ├── build_001111.xml │ │ │ ├── build_010000.xml │ │ │ ├── build_010001.xml │ │ │ ├── build_010010.xml │ │ │ ├── build_010011.xml │ │ │ ├── build_010100.xml │ │ │ ├── build_010101.xml │ │ │ ├── build_010110.xml │ │ │ ├── build_010111.xml │ │ │ ├── build_011000.xml │ │ │ ├── build_011001.xml │ │ │ ├── build_011010.xml │ │ │ ├── build_011011.xml │ │ │ ├── build_011100.xml │ │ │ ├── build_011101.xml │ │ │ ├── build_011110.xml │ │ │ ├── build_100000.xml │ │ │ ├── build_100001.xml │ │ │ ├── build_100010.xml │ │ │ ├── build_100011.xml │ │ │ ├── build_100100.xml │ │ │ ├── build_100101.xml │ │ │ ├── build_100110.xml │ │ │ ├── build_100111.xml │ │ │ ├── build_101000.xml │ │ │ ├── build_101001.xml │ │ │ ├── build_101010.xml │ │ │ ├── build_101011.xml │ │ │ ├── build_101100.xml │ │ │ ├── build_101101.xml │ │ │ ├── build_101110.xml │ │ │ ├── build_110000.xml │ │ │ ├── build_110001.xml │ │ │ ├── build_110010.xml │ │ │ ├── build_110011.xml │ │ │ ├── build_110100.xml │ │ │ ├── build_110101.xml │ │ │ ├── build_110110.xml │ │ │ ├── build_111000.xml │ │ │ ├── build_111001.xml │ │ │ ├── build_111010.xml │ │ │ ├── build_111100.xml │ │ │ ├── exclude_branches.xml │ │ │ ├── limit_branches.xml │ │ │ ├── use_agent_checkout.xml │ │ │ ├── basic_server.xml │ │ │ ├── limit_repositories.xml │ │ │ └── same_checkout_credentials.xml │ │ │ ├── GitHubSCMSourceTraitsTest │ │ │ ├── modern.xml │ │ │ ├── repositoryUrl.xml │ │ │ ├── basic_cloud.xml │ │ │ ├── build_000011.xml │ │ │ ├── build_000101.xml │ │ │ ├── build_000110.xml │ │ │ ├── build_000111.xml │ │ │ ├── build_001001.xml │ │ │ ├── build_001010.xml │ │ │ ├── build_001011.xml │ │ │ ├── build_001100.xml │ │ │ ├── build_001101.xml │ │ │ ├── build_001110.xml │ │ │ ├── build_001111.xml │ │ │ ├── build_010001.xml │ │ │ ├── build_010010.xml │ │ │ ├── build_010011.xml │ │ │ ├── build_010100.xml │ │ │ ├── build_010101.xml │ │ │ ├── build_010110.xml │ │ │ ├── build_010111.xml │ │ │ ├── build_011000.xml │ │ │ ├── build_011001.xml │ │ │ ├── build_011010.xml │ │ │ ├── build_011011.xml │ │ │ ├── build_011100.xml │ │ │ ├── build_011101.xml │ │ │ ├── build_011110.xml │ │ │ ├── build_011111.xml │ │ │ ├── build_100001.xml │ │ │ ├── build_100010.xml │ │ │ ├── build_100011.xml │ │ │ ├── build_100100.xml │ │ │ ├── build_100101.xml │ │ │ ├── build_100110.xml │ │ │ ├── build_100111.xml │ │ │ ├── build_101000.xml │ │ │ ├── build_101001.xml │ │ │ ├── build_101010.xml │ │ │ ├── build_101011.xml │ │ │ ├── build_101100.xml │ │ │ ├── build_101101.xml │ │ │ ├── build_101110.xml │ │ │ ├── build_101111.xml │ │ │ ├── build_110000.xml │ │ │ ├── build_110001.xml │ │ │ ├── build_110010.xml │ │ │ ├── build_110011.xml │ │ │ ├── build_110100.xml │ │ │ ├── build_110101.xml │ │ │ ├── build_110110.xml │ │ │ ├── build_110111.xml │ │ │ ├── build_111000.xml │ │ │ ├── build_111001.xml │ │ │ ├── build_111010.xml │ │ │ ├── build_111011.xml │ │ │ ├── build_111100.xml │ │ │ ├── build_111101.xml │ │ │ ├── build_111110.xml │ │ │ ├── build_111111.xml │ │ │ ├── build_000000.xml │ │ │ ├── build_000001.xml │ │ │ ├── build_000010.xml │ │ │ ├── build_000100.xml │ │ │ ├── build_001000.xml │ │ │ ├── build_010000.xml │ │ │ ├── build_100000.xml │ │ │ ├── exclude_branches.xml │ │ │ ├── limit_branches.xml │ │ │ ├── use_agent_checkout.xml │ │ │ ├── basic_server.xml │ │ │ ├── custom_checkout_credentials.xml │ │ │ └── same_checkout_credentials.xml │ │ │ └── configuration-as-code.yaml │ └── java │ │ └── org │ │ └── jenkinsci │ │ └── plugins │ │ └── github_branch_source │ │ ├── GitHubSCMSourceHelperTest.java │ │ ├── GitHubBranchDetailTest.java │ │ ├── GitSCMSourceBase.java │ │ └── app_credentials │ │ └── AccessInferredOwnerTest.java └── main │ ├── resources │ ├── org │ │ └── jenkinsci │ │ │ └── plugins │ │ │ └── github_branch_source │ │ │ ├── GitHubSCMNavigator │ │ │ ├── config_en.properties │ │ │ ├── config_en_US.properties │ │ │ ├── help-repoOwner.html │ │ │ ├── help-apiUri.html │ │ │ ├── help-enableAvatar.html │ │ │ ├── help-traits.html │ │ │ ├── config.jelly │ │ │ └── help-credentialsId.html │ │ │ ├── TeamSlugTrait │ │ │ ├── help.html │ │ │ ├── help-teamSlug.html │ │ │ └── config.jelly │ │ │ ├── GitHubSCMSource │ │ │ ├── config-detail_en.properties │ │ │ ├── config-detail_en_US.properties │ │ │ ├── help-repository.html │ │ │ ├── help-repoOwner.html │ │ │ ├── help-apiUri.html │ │ │ ├── help-traits.html │ │ │ ├── help-repositoryUrl.html │ │ │ └── help-credentialsId.html │ │ │ ├── TopicsTrait │ │ │ ├── help.html │ │ │ ├── help-topicList.html │ │ │ └── config.jelly │ │ │ ├── TagDiscoveryTrait │ │ │ ├── help.html │ │ │ └── config.jelly │ │ │ ├── BranchDiscoveryTrait │ │ │ ├── help.html │ │ │ ├── config.jelly │ │ │ └── help-strategyId.html │ │ │ ├── ForkPullRequestDiscoveryTrait │ │ │ ├── help_zn_CN.html │ │ │ ├── TrustEveryone │ │ │ │ ├── config.properties │ │ │ │ └── config.jelly │ │ │ ├── TrustPermission │ │ │ │ ├── config.properties │ │ │ │ └── config.jelly │ │ │ ├── help.html │ │ │ ├── TrustContributors │ │ │ │ ├── config.properties │ │ │ │ └── config.jelly │ │ │ ├── config.jelly │ │ │ └── help-strategyId.html │ │ │ ├── ExcludePrivateTrait │ │ │ ├── config.jelly │ │ │ └── help.html │ │ │ ├── SSHCheckoutTrait │ │ │ ├── help-credentialsId.html │ │ │ ├── config.jelly │ │ │ └── help.html │ │ │ ├── GitHubAppCredentials │ │ │ ├── help-appID.html │ │ │ ├── help-apiUri.html │ │ │ ├── help-privateKey.html │ │ │ ├── help-repositoryAccessStrategy.html │ │ │ ├── help-owner.html │ │ │ └── help-defaultPermissionsStrategy.html │ │ │ ├── ExcludePublicTrait │ │ │ ├── help.html │ │ │ └── config.jelly │ │ │ ├── OriginPullRequestDiscoveryTrait │ │ │ ├── help.html │ │ │ ├── config.jelly │ │ │ └── help-strategyId.html │ │ │ ├── app_credentials │ │ │ ├── MigrationAdminMonitor │ │ │ │ ├── description.jelly │ │ │ │ ├── description.properties │ │ │ │ ├── message.properties │ │ │ │ └── message.jelly │ │ │ ├── AccessSpecifiedRepositories │ │ │ │ ├── help-repositories.html │ │ │ │ ├── help.html │ │ │ │ ├── config.jelly │ │ │ │ └── help-owner.html │ │ │ ├── AccessInferredOwner │ │ │ │ └── help.html │ │ │ ├── AccessInferredRepository │ │ │ │ └── help.html │ │ │ └── Messages.properties │ │ │ ├── Endpoint │ │ │ ├── help-apiUri.html │ │ │ └── config.jelly │ │ │ ├── ExcludeArchivedTrait │ │ │ ├── help.html │ │ │ └── config.jelly │ │ │ ├── GitHubRepositoryDescriptionColumn │ │ │ ├── columnHeader.jelly │ │ │ └── column.jelly │ │ │ ├── RepositoryUriResolver │ │ │ └── config.jelly │ │ │ └── GitHubConfiguration │ │ │ ├── help-apiRateLimitChecker.html │ │ │ └── config.jelly │ └── index.jelly │ ├── java │ └── org │ │ └── jenkinsci │ │ └── plugins │ │ └── github_branch_source │ │ ├── InvalidPrivateKeyException.java │ │ ├── GitHubTagSCMHead.java │ │ ├── app_credentials │ │ ├── AccessInferredOwner.java │ │ └── MigrationAdminMonitor.java │ │ ├── GitHubBranchDetail.java │ │ └── GitHubPullRequestDetail.java │ └── webapp │ └── images │ └── svgs │ ├── sprite-github.svg │ └── github-logo.svg ├── .mvn ├── maven.config └── extensions.xml ├── .gitignore ├── .git-blame-ignore-revs ├── .editorconfig ├── Jenkinsfile └── LICENSE.txt /demo/.gitignore: -------------------------------------------------------------------------------- 1 | plugins 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.java text eol=lf 2 | -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | _extends: .github 2 | -------------------------------------------------------------------------------- /demo/JENKINS_HOME/jenkins.install.UpgradeWizard.state: -------------------------------------------------------------------------------- 1 | 2.0 -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-foo-bar.txt-Tdzng.txt: -------------------------------------------------------------------------------- 1 | Some text 2 | -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-fu-bar.txt-b4k4I.txt: -------------------------------------------------------------------------------- 1 | Some text 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @jenkinsci/github-branch-source-plugin-developers 2 | -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-foo-manchu.txt-PKdJT.txt: -------------------------------------------------------------------------------- 1 | s/foo/fu/ 2 | -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-fu-manchu.txt-Meind.txt: -------------------------------------------------------------------------------- 1 | ../foo/manchu.txt -------------------------------------------------------------------------------- /src/test/resources/api/contextualization/body-repos-cloudbeers-multibranch-demo-pulls.json: -------------------------------------------------------------------------------- 1 | [] -------------------------------------------------------------------------------- /.mvn/maven.config: -------------------------------------------------------------------------------- 1 | -Pconsume-incrementals 2 | -Pmight-produce-incrementals 3 | -Dchangelist.format=%d.v%s 4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config_en.properties: -------------------------------------------------------------------------------- 1 | Behaviours=Behaviours 2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TeamSlugTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Set team slug 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config_en_US.properties: -------------------------------------------------------------------------------- 1 | Behaviours=Behaviors 2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/config-detail_en.properties: -------------------------------------------------------------------------------- 1 | Behaviours=Behaviours 2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/config-detail_en_US.properties: -------------------------------------------------------------------------------- 1 | Behaviours=Behaviors 2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TopicsTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Set required repository topics. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-repository.html: -------------------------------------------------------------------------------- 1 |
2 | The repository to scan. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TagDiscoveryTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Discovers tags on the repository. 3 |
4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | target 2 | /work* 3 | /github-branch-source.iml 4 | /.idea 5 | .classpath 6 | .project 7 | .settings 8 | .vscode 9 | .factorypath 10 | bin 11 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/BranchDiscoveryTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Discovers branches on the repository. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/help_zn_CN.html: -------------------------------------------------------------------------------- 1 |
2 | 从目标库的派生库发现 Pull Request。 3 |
4 | -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-c0e024f89969b976da165eecaa71e09dc60c3da1-CONTRIBUTING.adoc-ofmrZ.txt: -------------------------------------------------------------------------------- 1 | = A test 2 | 3 | This is a test of Asciidoc support 4 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-octocat-hello-world-topics.json: -------------------------------------------------------------------------------- 1 | { 2 | "names": [ 3 | "octocat", 4 | "atom", 5 | "electron", 6 | "api" 7 | ] 8 | } -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-tags-non-existent-tag.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Not Found", 3 | "documentation_url": "https://developer.github.com/v3" 4 | } -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-e301dc6d5bb7e6e18d80e85f19caa92c74e15e96-README.md-faFdc.txt: -------------------------------------------------------------------------------- 1 | # yolo 2 | 3 | This project is not meant to be built by Jenkins!! 4 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-topics.json: -------------------------------------------------------------------------------- 1 | { 2 | "names": [ 3 | "octocat", 4 | "atom", 5 | "electron", 6 | "api", 7 | "awesome" 8 | ] 9 | } -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-collaborators-ug5Pu.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Requires authentication", 3 | "documentation_url": "https://developer.github.com/v3" 4 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ExcludePrivateTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-users-notauser.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Not Found", 3 | "documentation_url": "https://developer.github.com/v3/users/#get-a-single-user" 4 | } 5 | -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-8f1314fc3c8284d8c6d5886d473db98f2126071c-README.md-tHUzO.txt: -------------------------------------------------------------------------------- 1 | # yolo 2 | 3 | This project is not meant to be built by Jenkins!! 4 | 5 | Honest 6 | -------------------------------------------------------------------------------- /src/test/resources/raw/__files/body-c0e024f89969b976da165eecaa71e09dc60c3da1-README.md-e2ju7.txt: -------------------------------------------------------------------------------- 1 | # yolo 2 | 3 | This project is not meant to be built by Jenkins!! 4 | 5 | Honest 6 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-octocat-github-branch-source-plugin-topics.json: -------------------------------------------------------------------------------- 1 | { 2 | "names": [ 3 | "octocat", 4 | "atom", 5 | "electron", 6 | "api" 7 | ] 8 | } -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-heads-master-notfound.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Not Found", 3 | "documentation_url": "https://developer.github.com/v3/git/refs/#get-a-reference" 4 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/SSHCheckoutTrait/help-credentialsId.html: -------------------------------------------------------------------------------- 1 |
2 | Credentials used to check out sources. Must be a SSH key based credential. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/TrustEveryone/config.properties: -------------------------------------------------------------------------------- 1 | blurb=
This option is generally insecure. See help button.
2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/TrustPermission/config.properties: -------------------------------------------------------------------------------- 1 | blurb=May not be supported on older versions of GitHub Enterprise. See help button. 2 | -------------------------------------------------------------------------------- /src/test/resources/api/branches/_files/body-yolo-branches-non-existent-branch.json: -------------------------------------------------------------------------------- 1 | { 2 | "message": "Branch not found", 3 | "documentation_url": "https://developer.github.com/v3/repos/branches/#get-branch" 4 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Discovers pull requests where the origin repository is a fork of the target repository. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-appID.html: -------------------------------------------------------------------------------- 1 |

2 | GitHub app ID, can be found on the App's settings, on the General page in the About section 3 |

4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ExcludePublicTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Exclude GitHub repositories that are public. If set, no jobs will be created for public repositories. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/OriginPullRequestDiscoveryTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Discovers pull requests where the origin repository is the same as the target repository. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ExcludePrivateTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Exclude GitHub repositories that are private. If set, no jobs will be created for private repositories. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/MigrationAdminMonitor/description.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${%blurb} 4 | 5 | -------------------------------------------------------------------------------- /src/main/resources/index.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | Multibranch projects and organization folders from GitHub. Maintained by CloudBees, Inc. 5 |
6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/Endpoint/help-apiUri.html: -------------------------------------------------------------------------------- 1 |

2 | GitHub API endpoint such as https://github.example.com/api/v3/. 3 |

-------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ExcludeArchivedTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | Exclude GitHub repositories that have been archived. If set, no jobs will be created for archived repositories. 3 |
4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/TrustContributors/config.properties: -------------------------------------------------------------------------------- 1 | blurb=
This option may be insecure in some environments. See help button.
2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubRepositoryDescriptionColumn/columnHeader.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | ${%Description} 4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-repoOwner.html: -------------------------------------------------------------------------------- 1 |
2 |

Specify the name of the GitHub Organization or GitHub User Account.

3 |
-------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-repoOwner.html: -------------------------------------------------------------------------------- 1 |
2 |

Specify the name of the GitHub Organization or GitHub User Account.

3 |
-------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-archived-topics.json: -------------------------------------------------------------------------------- 1 | { 2 | "names": [ 3 | "octocat", 4 | "atom", 5 | "electron", 6 | "api", 7 | "cool", 8 | "great", 9 | "was-awesome" 10 | ] 11 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-apiUri.html: -------------------------------------------------------------------------------- 1 |

2 | GitHub API endpoint such as https://github.example.com/api/v3/. 3 |

4 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TeamSlugTrait/help-teamSlug.html: -------------------------------------------------------------------------------- 1 |
2 |

Specify an optional name of the GitHub Team Slug. This will limit repositories to only the repositories owned by the team.

3 |
-------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | # .git-blame-ignore-revs 2 | # Reformatted: https://github.com/jenkinsci/github-branch-source-plugin/pull/392 3 | 2b68b4b8b14afa36ee5e243ed8630e2c01a86e2c 4 | # Use upstream Spotless configuration (#684) 5 | 51545c395c1c893412a4967c4176f377879955f8 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/RepositoryUriResolver/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-apiUri.html: -------------------------------------------------------------------------------- 1 |
2 | The server to connect to. The list of servers is configured in the Manage Jenkins » Configure 3 | System » GitHub Enterprise Servers screen. 4 |
5 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-apiUri.html: -------------------------------------------------------------------------------- 1 |
2 | The server to connect to. The list of servers is configured in the Manage Jenkins » Configure 3 | System » GitHub Enterprise Servers screen. 4 |
5 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TopicsTrait/help-topicList.html: -------------------------------------------------------------------------------- 1 |
2 |

Specify a comma-separated list of topics to filter for repositories that have (you can prefix topic with `-` to have it excluded) all of them.

3 |
4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [*.md] 11 | trim_trailing_whitespace = false 12 | 13 | [*.java] 14 | ij_continuation_indent_size = 8 15 | indent_size = 4 16 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/TrustContributors/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${%blurb} 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/TrustEveryone/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${%blurb} 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/TrustPermission/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ${%blurb} 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/SSHCheckoutTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/MigrationAdminMonitor/description.properties: -------------------------------------------------------------------------------- 1 | blurb=Informs administrators of new features available for existing GitHub App credentials that allow dynamic restriction of the repositories and permissions available to jobs that use the credentials 2 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/github_branch_source/InvalidPrivateKeyException.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | public class InvalidPrivateKeyException extends RuntimeException { 4 | 5 | public InvalidPrivateKeyException(String message) { 6 | super(message); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TopicsTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TeamSlugTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /demo/JENKINS_HOME/jenkins.model.JenkinsLocationConfiguration.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | address not configured yet <nobody@nowhere> 4 | http://localhost:8080/ 5 | 6 | -------------------------------------------------------------------------------- /.github/workflows/auto-merge-safe-deps.yml: -------------------------------------------------------------------------------- 1 | name: Automatically approve and merge safe dependency updates 2 | on: 3 | - pull_request_target 4 | permissions: 5 | contents: write 6 | pull-requests: write 7 | jobs: 8 | auto-merge-safe-deps: 9 | uses: jenkins-infra/github-reusable-workflows/.github/workflows/auto-merge-safe-deps.yml@v1 10 | -------------------------------------------------------------------------------- /.github/workflows/close-bom-if-passing.yml: -------------------------------------------------------------------------------- 1 | name: Close BOM update PR if passing 2 | on: 3 | check_run: 4 | types: 5 | - completed 6 | permissions: 7 | contents: read 8 | pull-requests: write 9 | jobs: 10 | close-bom-if-passing: 11 | uses: jenkins-infra/github-reusable-workflows/.github/workflows/close-bom-if-passing.yml@v1 12 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-privateKey.html: -------------------------------------------------------------------------------- 1 |

2 | Private key for authenticating to GitHub with, it must be in PKCS#8 format, GitHub will give it to you in PKCS#1. 3 |

4 |

5 | You can convert it with: openssl pkcs8 -topk8 -nocrypt -in downloaded-key.pem 6 |

7 | -------------------------------------------------------------------------------- /Jenkinsfile: -------------------------------------------------------------------------------- 1 | /* 2 | See the documentation for more options: 3 | https://github.com/jenkins-infra/pipeline-library/ 4 | */ 5 | buildPlugin( 6 | useContainerAgent: true, // Set to `false` if you need to use Docker for containerized tests 7 | configurations: [ 8 | [platform: 'linux', jdk: 25], 9 | [platform: 'windows', jdk: 21], 10 | ]) 11 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/modern.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessSpecifiedRepositories/help-repositories.html: -------------------------------------------------------------------------------- 1 |

2 | The names of the repositories that this credential is to be used for, one per line. 3 | If no repositories are specified, then the generated access tokens will have access to every 4 | repository available to the owner. 5 |

6 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/modern.xml: -------------------------------------------------------------------------------- 1 | 2 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 3 | cloudbeers 4 | stunning-adventure 5 | 6 | 7 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-repositoryAccessStrategy.html: -------------------------------------------------------------------------------- 1 |
2 | This option controls what GitHub repositories are accessible to the access tokens generated when using these credentials. 3 | Jenkins can generate tokens which only have access to a subset of the repositories available to the app installation. 4 |
5 | -------------------------------------------------------------------------------- /src/test/resources/api/contextualization/body-repos-cloudbeers-multibranch-demo-branches.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "master", 4 | "commit": { 5 | "sha": "ba1fdaa6c2088cecea85333e763710cd3f39688f", 6 | "url": "https://api.github.com/repos/cloudbeers/multibranch-demo/commits/ba1fdaa6c2088cecea85333e763710cd3f39688f" 7 | }, 8 | "protected": false 9 | } 10 | ] -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-heads-master.json: -------------------------------------------------------------------------------- 1 | { 2 | "ref": "refs/heads/master", 3 | "url": "https://api.github.com/repos/cloudbeers/yolo/git/refs/heads/master", 4 | "object": { 5 | "sha": "8f1314fc3c8284d8c6d5886d473db98f2126071c", 6 | "type": "commit", 7 | "url": "https://api.github.com/repos/cloudbeers/yolo/git/commits/8f1314fc3c8284d8c6d5886d473db98f2126071c" 8 | } 9 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ExcludePublicTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/TagDiscoveryTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ExcludeArchivedTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /.mvn/extensions.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | io.jenkins.tools.incrementals 4 | git-changelist-maven-extension 5 | 1.13 6 | 7 | 8 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/MigrationAdminMonitor/message.properties: -------------------------------------------------------------------------------- 1 | blurb=Consider reconfiguring your existing GitHub App credentials to take advantage of new options \ 2 | which allow dynamic restriction of the repositories and permissions available to the generated \ 3 | access tokens used by jobs. 4 | affectedCredentials=Click to view affected credentials (entries are not removed until Jenkins restarts): 5 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/Endpoint/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.github/workflows/cd.yaml: -------------------------------------------------------------------------------- 1 | # Note: additional setup is required, see https://www.jenkins.io/redirect/continuous-delivery-of-plugins 2 | 3 | name: cd 4 | on: 5 | workflow_dispatch: 6 | check_run: 7 | types: 8 | - completed 9 | 10 | jobs: 11 | maven-cd: 12 | uses: jenkins-infra/github-reusable-workflows/.github/workflows/maven-cd.yml@v1 13 | secrets: 14 | MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} 15 | MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} 16 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessSpecifiedRepositories/help.html: -------------------------------------------------------------------------------- 1 |
2 | When using this mode, the credentials may be used in any context in Jenkins. 3 | The generated access tokens will be to access the specified repositories. 4 | 5 | If the app is installed in multiple organizations, this mode will only allow one of those organizations to be accessed. 6 | Additional credentials may be defined to access other organizations. 7 |
8 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-tags-existent-tag.json: -------------------------------------------------------------------------------- 1 | { 2 | "ref": "refs/tags/existent-tag", 3 | "node_id": "MDM6UmVmNTAyNTA5MTU6Ymx1ZW9jZWFuLXBhcmVudC0xLjE4LjA=", 4 | "url": "https://api.github.com/repos/cloudbeers/yolo/git/refs/tags/existent-tag", 5 | "object": { 6 | "sha": "d6af8fca2a8dd7a575adc4ac79046c91e7dc3db8", 7 | "type": "tag", 8 | "url": "https://api.github.com/repos/jenkinsci/blueocean-plugin/git/tags/d6af8fca2a8dd7a575adc4ac79046c91e7dc3db8" 9 | } 10 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/BranchDiscoveryTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-owner.html: -------------------------------------------------------------------------------- 1 |

2 | The organisation or user that this app is to be used for. 3 | Only required if this app is installed to multiple organisations and connections 4 | should be restricted to a single organisation. 5 | May be omitted in case credentials are used from GitHub multibranch projects 6 | (in that case the account is determined from the branch source where the credentials are used). 7 |

8 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessSpecifiedRepositories/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/OriginPullRequestDiscoveryTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-branches-c2Eko.json: -------------------------------------------------------------------------------- 1 | [{ 2 | "name": "master", 3 | "commit": { 4 | "sha": "8f1314fc3c8284d8c6d5886d473db98f2126071c", 5 | "url": "https://api.github.com/repos/cloudbeers/yolo/commits/8f1314fc3c8284d8c6d5886d473db98f2126071c" 6 | } 7 | }, { 8 | "name": "stephenc-patch-1", 9 | "commit": { 10 | "sha": "095e69602bb95a278505e937e41d505ac3cdd263", 11 | "url": "https://api.github.com/repos/cloudbeers/yolo/commits/095e69602bb95a278505e937e41d505ac3cdd263" 12 | } 13 | }] -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/repositoryUrl.xml: -------------------------------------------------------------------------------- 1 | 2 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 3 | https://api.github.com 4 | joseblas 5 | jx 6 | https://github.com/joseblas/jx 7 | abcd 8 | 9 | 10 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessInferredOwner/help.html: -------------------------------------------------------------------------------- 1 |
2 | When using this mode, the credentials may only be used in contexts where a GitHub owner can be inferred, such 3 | as in a Multibranch Pipeline or Organization Folder, or in jobs where the "GitHub project" property is configured. 4 | Attempts to use the credentials in other contexts will fail. 5 | The generated access tokens will have access to any repository available to that owner for the GitHub App. 6 |
7 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessInferredRepository/help.html: -------------------------------------------------------------------------------- 1 |
2 | When using this mode, the credentials may only be used in contexts where a GitHub repository can be inferred, such 3 | as in a Multibranch Pipeline or Organization Folder, or in jobs where the "GitHub project" property is configured. 4 | Attempts to use the credentials in other contexts will fail. 5 | The generated access tokens will only be able to access the contextually appropriate repository. 6 |
7 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessSpecifiedRepositories/help-owner.html: -------------------------------------------------------------------------------- 1 |

2 | The organization or user that this credential is to be used for. 3 | If left blank: 4 |

8 |

9 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubAppCredentials/help-defaultPermissionsStrategy.html: -------------------------------------------------------------------------------- 1 |

2 | This option controls what permissions are available to the access tokens generated when using these credentials in untrusted contexts. 3 | For example, this setting is used when the credentials are bound in a Pipeline job using the withCredentials step. 4 |

5 |

6 | In other contexts, such as organization folder scans, multibranch project branch indexing, and GitHub commit status updates, this setting is ignored. 7 |

8 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-enableAvatar.html: -------------------------------------------------------------------------------- 1 |
2 |

Whether to use the GitHub Organization or GitHub User Account avatar as icon (only possible if private mode is disabled).

3 |

Note: this consumes an anonymous call to check if private mode is enabled. Although the result of this check is cached for some time (20 hours by default), this can block operations in some environments. See JENKINS-72030

4 |
5 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubRepositoryDescriptionColumn/column.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | ${p.description} 8 | 9 | 10 | ${p.description} 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/SSHCheckoutTrait/help.html: -------------------------------------------------------------------------------- 1 |
2 | By default the discovered branches / pull requests will all use the same username / password credentials 3 | that were used for discovery when checking out sources. This means that the checkout will be using the 4 | https:// protocol for the Git repository. 5 |

6 | This behaviour allows you to select the SSH private key to be used for checking out sources, which will 7 | consequently force the checkout to use the ssh:// protocol. 8 |

9 |
10 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-orgs-cloudbeers-teams-justice-league-AHFpl.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": 1, 3 | "node_id": "MDQ6VGVhbTE=", 4 | "url": "https://api.github.com/organizations/4181899/team/1/", 5 | "name": "Justice League", 6 | "slug": "justice-league", 7 | "description": "A great team.", 8 | "privacy": "closed", 9 | "permission": "admin", 10 | "members_url": "https://api.github.com/organizations/4181899/team/1/members{/member}", 11 | "repositories_url": "https://api.github.com/organizations/4181899/teams/1/repos", 12 | "parent": null 13 | } -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: "maven" 9 | directory: "/" # Location of package manifests 10 | schedule: 11 | interval: "daily" 12 | - package-ecosystem: github-actions 13 | directory: / 14 | schedule: 15 | interval: daily 16 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-traits.html: -------------------------------------------------------------------------------- 1 |
2 | The behaviours control what is discovered from the GitHub repository. The behaviours are grouped into a number 3 | of categories: 4 |
5 |
Within repository
6 |
These behaviours determine what gets discovered. If you do not configure at least one discovery 7 | behaviour then nothing will be found!
8 |
General
9 |
These behaviours affect the configuration of each discovered branch / pull request. 10 |
11 |
12 |
13 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-rate_limit-B5BGx.json: -------------------------------------------------------------------------------- 1 | { 2 | "resources": { 3 | "core": { 4 | "limit": 5000, 5 | "remaining": 4999, 6 | "reset": 1372700873 7 | }, 8 | "search": { 9 | "limit": 30, 10 | "remaining": 18, 11 | "reset": 1372697452 12 | }, 13 | "graphql": { 14 | "limit": 5000, 15 | "remaining": 4993, 16 | "reset": 1372700389 17 | }, 18 | "integration_manifest": { 19 | "limit": 5000, 20 | "remaining": 4999, 21 | "reset": 1551806725 22 | } 23 | }, 24 | "rate": { 25 | "limit": 5000, 26 | "remaining": 4999, 27 | "reset": 1372700873 28 | } 29 | } -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 10 | 11 | -------------------------------------------------------------------------------- /src/main/webapp/images/svgs/sprite-github.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.github/workflows/jenkins-security-scan.yml: -------------------------------------------------------------------------------- 1 | name: Jenkins Security Scan 2 | 3 | on: 4 | push: 5 | branches: 6 | - master 7 | pull_request: 8 | types: [ opened, synchronize, reopened ] 9 | workflow_dispatch: 10 | 11 | permissions: 12 | security-events: write 13 | contents: read 14 | actions: read 15 | 16 | jobs: 17 | security-scan: 18 | uses: jenkins-infra/jenkins-security-scan/.github/workflows/jenkins-security-scan.yaml@v2 19 | with: 20 | java-cache: 'maven' # Optionally enable use of a build dependency cache. Specify 'maven' or 'gradle' as appropriate. 21 | # java-version: 21 # Optionally specify what version of Java to set up for the build, or remove to use a recent default. 22 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/basic_cloud.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_000111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | false 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_001111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | false 8 | true 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_010111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | false 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_011110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | false 7 | true 8 | true 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_100111.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | false 9 | true 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_101110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | false 8 | true 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110011.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | false 10 | true 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110101.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | true 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_110110.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | false 9 | true 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111000.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | false 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111001.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | false 10 | false 11 | true 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111010.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | false 10 | true 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/build_111100.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | true 7 | true 8 | true 9 | true 10 | false 11 | false 12 | 13 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubConfiguration/help-apiRateLimitChecker.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Normalize API requests: Attempt to evenly distribute GitHub API requests. This strategy can be helpful when there are numerous pipelines 4 | that are managed by multiple users and/or there are many concurrent builds, making it difficult to know when a pipeline has been paused 5 | due to exceeding the GitHub API usage limit. 6 |

7 |

8 | Throttle at/near rate limit: Restrict GitHub API requests only when near or above rate limit. This strategy may be preferred over "Throttle for Normalize" 9 | if there are relatively few/infrequent queries to the GitHub API. 10 |

11 |
12 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubTagSCMHead.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | import edu.umd.cs.findbugs.annotations.NonNull; 4 | import jenkins.plugins.git.GitTagSCMHead; 5 | import jenkins.scm.api.mixin.TagSCMHead; 6 | 7 | public class GitHubTagSCMHead extends GitTagSCMHead implements TagSCMHead { 8 | 9 | /** 10 | * Constructor. 11 | * 12 | * @param name the name. 13 | * @param timestamp the tag timestamp; 14 | */ 15 | public GitHubTagSCMHead(@NonNull String name, long timestamp) { 16 | super(name, timestamp); 17 | } 18 | 19 | /** {@inheritDoc} */ 20 | @Override 21 | public String getPronoun() { 22 | return Messages.GitHubTagSCMHead_Pronoun(); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-repositoryUrl.html: -------------------------------------------------------------------------------- 1 |
2 |

Specify the HTTPS URL of the GitHub Organization / User Account and repository.

3 |

4 | GitHub examples: 5 |

9 |

10 |

11 | GitHub Enterprise examples: 12 |

16 |

17 |
18 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/exclude_branches.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | .* 6 | master 7 | true 8 | true 9 | false 10 | true 11 | false 12 | true 13 | 14 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/limit_branches.xml: -------------------------------------------------------------------------------- 1 | 2 | cloudbeers 3 | bcaef157-f105-407f-b150-df7722eab6c1 4 | SAME 5 | feature/* 6 | .* 7 | true 8 | true 9 | false 10 | true 11 | false 12 | true 13 | 14 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/use_agent_checkout.xml: -------------------------------------------------------------------------------- 1 | 2 | https://github.test/api/v3 3 | cloudbeers 4 | bcaef157-f105-407f-b150-df7722eab6c1 5 | ANONYMOUS 6 | .* 7 | true 8 | true 9 | false 10 | true 11 | false 12 | true 13 | 14 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/Messages.properties: -------------------------------------------------------------------------------- 1 | AccessInferredOwner.displayName=Infer owner and allow access to all owned repositories 2 | AccessInferredRepository.displayName=Infer accessible repository 3 | AccessSpecifiedRepositories.displayName=Specify accessible repositories 4 | AccessSpecifiedRepositories.noRespositories=Because no repositories are specified, these credentials can be used to access any repository available to the owner 5 | MigrationAdminMonitor.displayName=Reconfigure GitHub App credentials to use new features 6 | DefaultPermissionsStrategy.contentsRead=Read-only access to repository contents 7 | DefaultPermissionsStrategy.contentsWrite=Read and write access to repository contents 8 | DefaultPermissionsStrategy.inheritAll=All permissions available to the app installation -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/configuration-as-code.yaml: -------------------------------------------------------------------------------- 1 | unclassified: 2 | globalLibraries: 3 | libraries: 4 | - defaultVersion: "master" 5 | name: "jenkins-pipeline-lib" 6 | retriever: 7 | modernSCM: 8 | scm: 9 | github: 10 | id: "e43d6600-ba0e-46c5-8eae-3989bf654055" 11 | repoOwner: "jenkins-infra" 12 | repository: "pipeline-library" 13 | traits: 14 | - gitHubBranchDiscovery: 15 | strategyId: 1 16 | - originPullRequestDiscoveryTrait: 17 | strategyId: 2 18 | - gitHubForkDiscovery: 19 | strategyId: 3 20 | trust: "gitHubTrustPermissions" 21 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/basic_server.xml: -------------------------------------------------------------------------------- 1 | 2 | https://github.test/api/v3 3 | cloudbeers 4 | bcaef157-f105-407f-b150-df7722eab6c1 5 | 8b2e4f77-39c5-41a9-b63b-8d367350bfdf 6 | .* 7 | true 8 | true 9 | false 10 | true 11 | false 12 | true 13 | 14 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/limit_repositories.xml: -------------------------------------------------------------------------------- 1 | 2 | https://github.test/api/v3 3 | cloudbeers 4 | bcaef157-f105-407f-b150-df7722eab6c1 5 | 8b2e4f77-39c5-41a9-b63b-8d367350bfdf 6 | limited.* 7 | true 8 | true 9 | false 10 | true 11 | false 12 | true 13 | 14 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigatorTraitsTest/same_checkout_credentials.xml: -------------------------------------------------------------------------------- 1 | 2 | https://github.test/api/v3 3 | cloudbeers 4 | bcaef157-f105-407f-b150-df7722eab6c1 5 | bcaef157-f105-407f-b150-df7722eab6c1 6 | .* 7 | true 8 | true 9 | false 10 | true 11 | false 12 | true 13 | 14 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/app_credentials/MigrationAdminMonitor/message.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
5 | 6 | 7 | ${%blurb} 8 |

See here for more information.

9 |
10 | ${%affectedCredentials} 11 |
    12 | 13 |
  • ${c}
  • 14 |
    15 |
16 |
17 |
18 |
19 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-traits.html: -------------------------------------------------------------------------------- 1 |
2 | The behaviours control what is discovered from the GitHub server. The behaviours are grouped into a number 3 | of categories: 4 |
5 |
Repository
6 |
These behaviours determine what repositories get discovered. Only repositories that have at least one 7 | discovered branch / pull request can themselves be discovered. 8 |
9 |
Within repository
10 |
These behaviours determine what gets discovered within each repository. If you do not configure 11 | at least one discovery behaviour then nothing will be found!
12 |
General
13 |
These behaviours affect the configuration of each discovered branch / pull request. 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubConfiguration/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 |
15 |
16 |
17 |
18 |
19 |
20 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/basic_cloud.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_011111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | true 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_101111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | true 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_110111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111011.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | false 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111101.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | true 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111110.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | true 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_111111.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | true 12 | true 13 | true 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000001.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | false 13 | false 14 | true 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000010.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_000100.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | false 12 | true 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_001000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | false 11 | true 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_010000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | false 10 | true 11 | false 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/build_100000.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | false 11 | false 12 | false 13 | false 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/exclude_branches.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | master 9 | true 10 | true 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/limit_branches.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | SAME 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | feature/* 8 | 9 | true 10 | true 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/use_agent_checkout.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://api.github.com::cloudbeers::stunning-adventure 3 | ANONYMOUS 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | cloudbeers 6 | stunning-adventure 7 | * 8 | 9 | true 10 | true 11 | false 12 | false 13 | true 14 | false 15 | 16 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/basic_server.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://github.test/api/v3::cloudbeers::stunning-adventure 3 | https://github.test/api/v3 4 | SAME 5 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 6 | cloudbeers 7 | stunning-adventure 8 | * 9 | 10 | true 11 | false 12 | false 13 | true 14 | false 15 | true 16 | 17 | -------------------------------------------------------------------------------- /src/main/webapp/images/svgs/github-logo.svg: -------------------------------------------------------------------------------- 1 | Github 2 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-yolo-tags-existent-multiple-tags.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ref": "refs/tags/existent-multiple-tags1", 4 | "node_id": "MDM6UmVmNTU1NDMyMjU6d29ya2Zsb3ctY3BzLTIuMA==", 5 | "url": "https://api.github.com/repos/cloudbeers/yolo/git/refs/tags/existent-multiple-tags1", 6 | "object": { 7 | "sha": "bc691aee5d7df13d0e90a05885d9e1bdd662c40e", 8 | "type": "tag", 9 | "url": "https://api.github.com/repos/jenkinsci/workflow-cps-plugin/git/tags/bc691aee5d7df13d0e90a05885d9e1bdd662c40e" 10 | } 11 | }, 12 | { 13 | "ref": "refs/tags/existent-multiple-tags2", 14 | "node_id": "MDM6UmVmNTU1NDMyMjU6d29ya2Zsb3ctY3BzLTIuMQ==", 15 | "url": "https://api.github.com/repos/cloudbeers/yolo/git/refs/tags/existent-multiple-tags2", 16 | "object": { 17 | "sha": "5130ed00eabd3f808d0ac4998e539276c0df4ff2", 18 | "type": "tag", 19 | "url": "https://api.github.com/repos/jenkinsci/workflow-cps-plugin/git/tags/5130ed00eabd3f808d0ac4998e539276c0df4ff2" 20 | } 21 | } 22 | ] -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/custom_checkout_credentials.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://github.test/api/v3::cloudbeers::stunning-adventure 3 | https://github.test/api/v3 4 | other-credentials 5 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 6 | cloudbeers 7 | stunning-adventure 8 | * 9 | 10 | true 11 | false 12 | false 13 | true 14 | false 15 | true 16 | 17 | -------------------------------------------------------------------------------- /src/test/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTraitsTest/same_checkout_credentials.xml: -------------------------------------------------------------------------------- 1 | 2 | org.jenkinsci.plugins.github_branch_source.GitHubSCMNavigator::https://github.test/api/v3::cloudbeers::stunning-adventure 3 | https://github.test/api/v3 4 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 5 | e4d8c11a-0d24-472f-b86b-4b017c160e9a 6 | cloudbeers 7 | stunning-adventure 8 | * 9 | 10 | true 11 | false 12 | false 13 | true 14 | false 15 | true 16 | 17 | -------------------------------------------------------------------------------- /demo/JENKINS_HOME/credentials.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | GitHub 13 | 14 | 15 | github.com 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | A brief summary describing the changes in this pull request. See 4 | [JENKINS-XXXXX](https://issues.jenkins-ci.org/browse/JENKINS-XXXXX) for further information. 5 | 6 | 9 | # Submitter checklist 10 | - [ ] Link to JIRA ticket in description, if appropriate. 11 | - [ ] Change is code complete and matches issue description 12 | - [ ] Automated tests have been added to exercise the changes 13 | - [ ] Reviewer's manual test instructions provided in PR description. See Reviewer's first task below. 14 | 15 | # Reviewer checklist 16 | - [ ] Run the changes and verify that the change matches the issue description 17 | - [ ] Reviewed the code 18 | - [ ] Verified that the appropriate tests have been written or valid explanation given 19 | 20 | # Documentation changes 21 | - [ ] Link to jenkins.io PR, or an explanation for why no doc changes are needed 22 | 23 | # Users/aliases to notify 24 | 25 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/config.jelly: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessInferredOwner.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source.app_credentials; 2 | 3 | import hudson.Extension; 4 | import org.jenkinsci.Symbol; 5 | import org.jenkinsci.plugins.github_branch_source.GitHubAppUsageContext; 6 | import org.kohsuke.stapler.DataBoundConstructor; 7 | 8 | public class AccessInferredOwner extends RepositoryAccessStrategy { 9 | 10 | @DataBoundConstructor 11 | public AccessInferredOwner() {} 12 | 13 | @Override 14 | public AccessibleRepositories forContext(final GitHubAppUsageContext context) { 15 | if (context.getInferredOwner() == null) { 16 | return null; 17 | } 18 | return new AccessibleRepositories(context.getInferredOwner()); 19 | } 20 | 21 | @Symbol("inferOwner") 22 | @Extension 23 | public static class DescriptorImpl extends RepositoryAccessStrategyDescriptor { 24 | @Override 25 | public String getDisplayName() { 26 | return Messages.AccessInferredOwner_displayName(); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/BranchDiscoveryTrait/help-strategyId.html: -------------------------------------------------------------------------------- 1 |
2 | Determines which branches are discovered. 3 |
4 |
Exclude branches that are also filed as PRs
5 |
6 | If you are discovering origin pull requests, you may not want to also build the source branches 7 | for those pull requests. 8 |
9 |
Only branches that are also filed as PRs
10 |
11 | Similar to discovering origin pull requests, but discovers the branch rather than the pull request. 12 | This means env.GIT_BRANCH will be set to the branch name rather than PR-#. 13 | Also, status notifications for these builds will only be applied to the commit and not to the pull request. 14 |
15 |
All branches
16 |
17 | Ignores whether the branch is also filed as a pull request and instead discovers all branches on the 18 | origin repository. 19 |
20 |
21 |
22 | -------------------------------------------------------------------------------- /src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceHelperTest.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | import static org.hamcrest.Matchers.is; 4 | import static org.junit.Assert.*; 5 | 6 | import org.junit.Test; 7 | 8 | public class GitHubSCMSourceHelperTest { 9 | 10 | @Test 11 | public void httpsUrl_non_github() { 12 | GitHubRepositoryInfo sut = GitHubRepositoryInfo.forRepositoryUrl("https://mygithub.com/jenkinsci/jenkins"); 13 | assertThat(sut.getRepoOwner(), is("jenkinsci")); 14 | assertThat(sut.getRepository(), is("jenkins")); 15 | assertThat(sut.getRepositoryUrl(), is("https://mygithub.com/jenkinsci/jenkins")); 16 | } 17 | 18 | @Test 19 | public void httpsUrl_github() { 20 | GitHubRepositoryInfo sut = GitHubRepositoryInfo.forRepositoryUrl("https://github.com/jenkinsci/jenkins"); 21 | assertThat(sut.getRepoOwner(), is("jenkinsci")); 22 | assertThat(sut.getRepository(), is("jenkins")); 23 | assertThat(sut.getRepositoryUrl(), is("https://github.com/jenkinsci/jenkins")); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-orgs-cloudbeers-aBLgn.json: -------------------------------------------------------------------------------- 1 | { 2 | "login": "cloudbeers", 3 | "id": 4181899, 4 | "url": "https://api.github.com/orgs/cloudbeers", 5 | "repos_url": "https://api.github.com/orgs/cloudbeers/repos", 6 | "events_url": "https://api.github.com/orgs/cloudbeers/events", 7 | "hooks_url": "https://api.github.com/orgs/cloudbeers/hooks", 8 | "issues_url": "https://api.github.com/orgs/cloudbeers/issues", 9 | "members_url": "https://api.github.com/orgs/cloudbeers/members{/member}", 10 | "public_members_url": "https://api.github.com/orgs/cloudbeers/public_members{/member}", 11 | "avatar_url": "https://avatars.githubusercontent.com/u/4181899?v=3", 12 | "description": null, 13 | "name": "CloudBeers, Inc.", 14 | "company": null, 15 | "blog": "cloudbeers.github.io", 16 | "location": null, 17 | "email": null, 18 | "public_repos": 13, 19 | "public_gists": 0, 20 | "followers": 0, 21 | "following": 0, 22 | "html_url": "https://github.com/cloudbeers", 23 | "created_at": "2013-04-17T13:52:33Z", 24 | "updated_at": "2016-02-27T07:57:23Z", 25 | "type": "Organization" 26 | } -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-fu-bar.txt-hkgiE.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "bar.txt", 3 | "path": "fu/bar.txt", 4 | "sha": "01b51e6ac5e39d1eb2fec3143437c6f117a58f03", 5 | "size": 10, 6 | "url": "https://api.github.com/repos/cloudbeers/yolo/contents/fu/bar.txt?ref=c0e024f89969b976da165eecaa71e09dc60c3da1", 7 | "html_url": "https://github.com/cloudbeers/yolo/blob/c0e024f89969b976da165eecaa71e09dc60c3da1/fu/bar.txt", 8 | "git_url": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/01b51e6ac5e39d1eb2fec3143437c6f117a58f03", 9 | "download_url": "https://raw.githubusercontent.com/cloudbeers/yolo/c0e024f89969b976da165eecaa71e09dc60c3da1/fu/bar.txt", 10 | "type": "file", 11 | "content": "U29tZSB0ZXh0Cg==\n", 12 | "encoding": "base64", 13 | "_links": { 14 | "self": "https://api.github.com/repos/cloudbeers/yolo/contents/fu/bar.txt?ref=c0e024f89969b976da165eecaa71e09dc60c3da1", 15 | "git": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/01b51e6ac5e39d1eb2fec3143437c6f117a58f03", 16 | "html": "https://github.com/cloudbeers/yolo/blob/c0e024f89969b976da165eecaa71e09dc60c3da1/fu/bar.txt" 17 | } 18 | } -------------------------------------------------------------------------------- /demo/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM jenkins/jenkins:2.89.4 2 | 3 | USER root 4 | 5 | # Not available in this distribution from universe (Utopic has 1.6): 6 | RUN wget -q -O /tmp/ngrok.zip https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip && \ 7 | cd /usr/local/bin && \ 8 | unzip /tmp/ngrok.zip && \ 9 | rm /tmp/ngrok.zip 10 | 11 | ENV DOCKER_BUCKET get.docker.com 12 | ENV DOCKER_VERSION 1.12.6 13 | RUN set -x \ 14 | && curl -fSL "https://${DOCKER_BUCKET}/builds/Linux/x86_64/docker-$DOCKER_VERSION.tgz" -o docker.tgz \ 15 | && tar -xzvf docker.tgz \ 16 | && mv docker/* /usr/local/bin/ \ 17 | && rmdir docker \ 18 | && rm docker.tgz \ 19 | && docker -v 20 | 21 | COPY plugins /usr/share/jenkins/ref/plugins 22 | RUN chown -R jenkins.jenkins /usr/share/jenkins/ref/plugins 23 | 24 | USER jenkins 25 | 26 | ADD JENKINS_HOME /usr/share/jenkins/ref 27 | 28 | # ngrok management UI on http://localhost:4040/; TODO outside the container just get a connection reset immediately, why? 29 | EXPOSE 4040 30 | 31 | CMD ngrok http --log=stdout --log-level=debug 8080 | fgrep ngrok.io & \ 32 | /usr/local/bin/jenkins.sh 33 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2015-2017, CloudBees, Inc. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /demo/Makefile: -------------------------------------------------------------------------------- 1 | IMAGE=jenkinsci/pipeline-as-code-github-demo 2 | TAG=$(shell date -I -u) 3 | DOCKER_RUN=docker run --rm -p 8080:8080 -p 4040:4040 -v /var/run/docker.sock:/var/run/docker.sock --group-add=$(shell stat -c %g /var/run/docker.sock) -ti 4 | 5 | copy-plugins: 6 | set -e; \ 7 | rm -rf plugins; \ 8 | mkdir plugins; \ 9 | for gav in `cat plugins.txt`; do \ 10 | g=`echo $$gav | cut -f1 -d: | perl -pe 's{[.]}{/}g'`; \ 11 | a=`echo $$gav | cut -f2 -d:`; \ 12 | v=`echo $$gav | cut -f3 -d:`; \ 13 | hpi=$$HOME/.m2/repository/$$g/$$a/$$v/$$a-$$v.hpi; \ 14 | if [ \! -f $$hpi ]; then \ 15 | mvn -U org.apache.maven.plugins:maven-dependency-plugin:2.5.1:get -Dartifact=$$gav:hpi -Dtransitive=false ||\ 16 | (locate $$a-$$v.hpi | fgrep .m2/repository/; false); \ 17 | fi; \ 18 | cp -v $$hpi plugins/$$a.jpi; \ 19 | done 20 | 21 | build: copy-plugins 22 | docker build -t $(IMAGE):$(TAG) . 23 | 24 | run: build 25 | $(DOCKER_RUN) $(IMAGE):$(TAG) 26 | 27 | push: 28 | docker push $(IMAGE):$(TAG) 29 | echo "consider also: make push-latest" 30 | 31 | push-latest: push 32 | docker tag $(IMAGE):$(TAG) $(IMAGE):latest 33 | docker push $(IMAGE):latest 34 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource/help-credentialsId.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Credentials used to scan branches and pull requests, 4 | check out sources and mark commit statuses. 5 |

6 |

7 | Note that only "username with password" credentials are supported. 8 | Existing credentials of other kinds will be filtered out. This is because Jenkins 9 | uses the GitHub API, which does not support other ways of authentication. 10 |

11 |

12 | If none is given, only the public repositories will be scanned, and commit status 13 | will not be set on GitHub. 14 |

15 |

16 | If your organization contains private repositories, then you need to specify 17 | a credential from a user who has access to those repositories. This is done 18 | by creating a "username with password" credential where the password is 19 | GitHub personal access tokens. 20 | The necessary scope is "repo". 21 |

22 |
23 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator/help-credentialsId.html: -------------------------------------------------------------------------------- 1 |
2 |

3 | Credentials used to scan branches and pull requests, 4 | check out sources and mark commit statuses. 5 |

6 |

7 | Note that only "username with password" credentials are supported. 8 | Existing credentials of other kinds will be filtered out. This is because Jenkins 9 | uses the GitHub API, which does not support other ways of authentication. 10 |

11 |

12 | If none is given, only the public repositories will be scanned, and commit status 13 | will not be set on GitHub. 14 |

15 |

16 | If your organization contains private repositories, then you need to specify 17 | a credential from a user who has access to those repositories. This is done 18 | by creating a "username with password" credential where the password is 19 | GitHub personal access tokens. 20 | The necessary scope is "repo". 21 |

22 |
23 | -------------------------------------------------------------------------------- /src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubBranchDetailTest.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | import static org.junit.jupiter.api.Assertions.*; 4 | import static org.mockito.Mockito.*; 5 | 6 | import hudson.model.Job; 7 | import hudson.model.Run; 8 | import jenkins.scm.api.metadata.ObjectMetadataAction; 9 | import org.junit.jupiter.api.Test; 10 | 11 | class GitHubBranchDetailTest { 12 | 13 | @Test 14 | void displaysAsExpected() { 15 | Run run = mock(Run.class); 16 | Job job = mock(Job.class); 17 | when(run.getParent()).thenReturn(job); 18 | ObjectMetadataAction metadata = mock(ObjectMetadataAction.class); 19 | when(metadata.getObjectDisplayName()).thenReturn("main"); 20 | when(metadata.getObjectUrl()).thenReturn("https://github.com/octo/hello-world/tree/main"); 21 | when(job.getAction(ObjectMetadataAction.class)).thenReturn(metadata); 22 | 23 | GitHubBranchDetail detail = new GitHubBranchDetail(run); 24 | 25 | assertEquals("main", detail.getDisplayName()); 26 | assertEquals("https://github.com/octo/hello-world/tree/main", detail.getLink()); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-contents-README.md-xDNvv.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "README.md", 3 | "path": "README.md", 4 | "sha": "9b3045f8933b9633a84697b1cb0c9d83c22d76d2", 5 | "size": 59, 6 | "url": "https://api.github.com/repos/cloudbeers/yolo/contents/README.md?ref=e301dc6d5bb7e6e18d80e85f19caa92c74e15e96", 7 | "html_url": "https://github.com/cloudbeers/yolo/blob/e301dc6d5bb7e6e18d80e85f19caa92c74e15e96/README.md", 8 | "git_url": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/9b3045f8933b9633a84697b1cb0c9d83c22d76d2", 9 | "download_url": "https://raw.githubusercontent.com/cloudbeers/yolo/e301dc6d5bb7e6e18d80e85f19caa92c74e15e96/README.md", 10 | "type": "file", 11 | "content": "IyB5b2xvCgpUaGlzIHByb2plY3QgaXMgbm90IG1lYW50IHRvIGJlIGJ1aWx0\nIGJ5IEplbmtpbnMhIQo=\n", 12 | "encoding": "base64", 13 | "_links": { 14 | "self": "https://api.github.com/repos/cloudbeers/yolo/contents/README.md?ref=e301dc6d5bb7e6e18d80e85f19caa92c74e15e96", 15 | "git": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/9b3045f8933b9633a84697b1cb0c9d83c22d76d2", 16 | "html": "https://github.com/cloudbeers/yolo/blob/e301dc6d5bb7e6e18d80e85f19caa92c74e15e96/README.md" 17 | } 18 | } -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-contents-README.md-ffQNT.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "README.md", 3 | "path": "README.md", 4 | "sha": "a39fed575990e3dec86cdbe8dae8a9a7ec0ab3ae", 5 | "size": 67, 6 | "url": "https://api.github.com/repos/cloudbeers/yolo/contents/README.md?ref=8f1314fc3c8284d8c6d5886d473db98f2126071c", 7 | "html_url": "https://github.com/cloudbeers/yolo/blob/8f1314fc3c8284d8c6d5886d473db98f2126071c/README.md", 8 | "git_url": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/a39fed575990e3dec86cdbe8dae8a9a7ec0ab3ae", 9 | "download_url": "https://raw.githubusercontent.com/cloudbeers/yolo/8f1314fc3c8284d8c6d5886d473db98f2126071c/README.md", 10 | "type": "file", 11 | "content": "IyB5b2xvCgpUaGlzIHByb2plY3QgaXMgbm90IG1lYW50IHRvIGJlIGJ1aWx0\nIGJ5IEplbmtpbnMhIQoKSG9uZXN0Cg==\n", 12 | "encoding": "base64", 13 | "_links": { 14 | "self": "https://api.github.com/repos/cloudbeers/yolo/contents/README.md?ref=8f1314fc3c8284d8c6d5886d473db98f2126071c", 15 | "git": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/a39fed575990e3dec86cdbe8dae8a9a7ec0ab3ae", 16 | "html": "https://github.com/cloudbeers/yolo/blob/8f1314fc3c8284d8c6d5886d473db98f2126071c/README.md" 17 | } 18 | } -------------------------------------------------------------------------------- /src/test/resources/api/__files/body-contents-README.md-qNsrm.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "README.md", 3 | "path": "README.md", 4 | "sha": "a39fed575990e3dec86cdbe8dae8a9a7ec0ab3ae", 5 | "size": 67, 6 | "url": "https://api.github.com/repos/cloudbeers/yolo/contents/README.md?ref=c0e024f89969b976da165eecaa71e09dc60c3da1", 7 | "html_url": "https://github.com/cloudbeers/yolo/blob/c0e024f89969b976da165eecaa71e09dc60c3da1/README.md", 8 | "git_url": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/a39fed575990e3dec86cdbe8dae8a9a7ec0ab3ae", 9 | "download_url": "https://raw.githubusercontent.com/cloudbeers/yolo/c0e024f89969b976da165eecaa71e09dc60c3da1/README.md", 10 | "type": "file", 11 | "content": "IyB5b2xvCgpUaGlzIHByb2plY3QgaXMgbm90IG1lYW50IHRvIGJlIGJ1aWx0\nIGJ5IEplbmtpbnMhIQoKSG9uZXN0Cg==\n", 12 | "encoding": "base64", 13 | "_links": { 14 | "self": "https://api.github.com/repos/cloudbeers/yolo/contents/README.md?ref=c0e024f89969b976da165eecaa71e09dc60c3da1", 15 | "git": "https://api.github.com/repos/cloudbeers/yolo/git/blobs/a39fed575990e3dec86cdbe8dae8a9a7ec0ab3ae", 16 | "html": "https://github.com/cloudbeers/yolo/blob/c0e024f89969b976da165eecaa71e09dc60c3da1/README.md" 17 | } 18 | } -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/github_branch_source/app_credentials/MigrationAdminMonitor.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source.app_credentials; 2 | 3 | import hudson.Extension; 4 | import hudson.ExtensionList; 5 | import hudson.model.AdministrativeMonitor; 6 | import java.util.HashSet; 7 | import java.util.Set; 8 | import org.kohsuke.accmod.Restricted; 9 | import org.kohsuke.accmod.restrictions.NoExternalUse; 10 | 11 | @Extension 12 | @Restricted(NoExternalUse.class) 13 | public class MigrationAdminMonitor extends AdministrativeMonitor { 14 | 15 | private final Set migratedCredentialIds = new HashSet<>(); 16 | 17 | @Override 18 | public boolean isActivated() { 19 | return !migratedCredentialIds.isEmpty(); 20 | } 21 | 22 | @Override 23 | public String getDisplayName() { 24 | return Messages.MigrationAdminMonitor_displayName(); 25 | } 26 | 27 | public Set getMigratedCredentialIds() { 28 | return migratedCredentialIds; 29 | } 30 | 31 | public static void addMigratedCredentialId(String id) { 32 | ExtensionList.lookupSingleton(MigrationAdminMonitor.class) 33 | .migratedCredentialIds 34 | .add(id); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /src/test/java/org/jenkinsci/plugins/github_branch_source/GitSCMSourceBase.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | import java.util.Arrays; 4 | import java.util.EnumSet; 5 | import jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy; 6 | import org.junit.Before; 7 | import org.kohsuke.github.GHRepository; 8 | import org.kohsuke.github.GitHub; 9 | 10 | public class GitSCMSourceBase extends AbstractGitHubWireMockTest { 11 | 12 | GitHubSCMSource source; 13 | GitHub github; 14 | GHRepository repo; 15 | 16 | @Before 17 | public void setupSourceTests() throws Exception { 18 | super.prepareMockGitHub(); 19 | // force apiUri to point to test server 20 | source.forceApiUri("http://localhost:" + githubApi.port()); 21 | source.setTraits(Arrays.asList( 22 | new BranchDiscoveryTrait(true, true), 23 | new ForkPullRequestDiscoveryTrait( 24 | EnumSet.of(ChangeRequestCheckoutStrategy.MERGE), 25 | new ForkPullRequestDiscoveryTrait.TrustContributors()))); 26 | github = Connector.connect("http://localhost:" + githubApi.port(), null); 27 | repo = github.getRepository("cloudbeers/yolo"); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/ForkPullRequestDiscoveryTrait/help-strategyId.html: -------------------------------------------------------------------------------- 1 |
2 | Determines how pull requests are discovered: 3 |
4 |
Merging the pull request with the current target branch revision
5 |
Discover each pull request once with the discovered revision corresponding to the result of merging with the 6 | current revision of the target branch. 7 | Note that pushes to the target branch will result in new pull request builds. 8 |
9 |
The current pull request revision
10 |
Discover each pull request once with the discovered revision corresponding to the pull request head revision 11 | without merging. 12 |
13 |
Both the current pull request revision and the pull request merged with the current target branch revision
14 |
Discover each pull request twice. The first discovered revision corresponds to the result of merging with 15 | the current revision of the target branch in each scan. The second parallel discovered revision corresponds 16 | to the pull request head revision without merging. 17 |
18 |
19 |
20 | -------------------------------------------------------------------------------- /src/main/resources/org/jenkinsci/plugins/github_branch_source/OriginPullRequestDiscoveryTrait/help-strategyId.html: -------------------------------------------------------------------------------- 1 |
2 | Determines how pull requests are discovered: 3 |
4 |
Merging the pull request with the current target branch revision
5 |
Discover each pull request once with the discovered revision corresponding to the result of merging with the 6 | current revision of the target branch. 7 | Note that pushes to the target branch will result in new pull request builds. 8 |
9 |
The current pull request revision
10 |
Discover each pull request once with the discovered revision corresponding to the pull request head revision 11 | without merging. 12 |
13 |
Both the current pull request revision and the pull request merged with the current target branch revision
14 |
Discover each pull request twice. The first discovered revision corresponds to the result of merging with 15 | the current revision of the target branch in each scan. The second parallel discovered revision corresponds 16 | to the pull request head revision without merging. 17 |
18 |
19 |
20 | -------------------------------------------------------------------------------- /src/test/resources/api/mappings/mapping-yolo-collaborators-ug5Pu.json: -------------------------------------------------------------------------------- 1 | { 2 | "request": { 3 | "url": "/repos/cloudbeers/yolo/collaborators", 4 | "method": "GET" 5 | }, 6 | "response": { 7 | "status": 401, 8 | "bodyFileName": "body-yolo-collaborators-ug5Pu.json", 9 | "headers": { 10 | "Server": "GitHub.com", 11 | "Date": "Tue, 06 Dec 2016 17:32:19 GMT", 12 | "Content-Type": "application/json; charset=utf-8", 13 | "Status": "401 Unauthorized", 14 | "X-RateLimit-Limit": "600", 15 | "X-RateLimit-Remaining": "596", 16 | "X-RateLimit-Reset": "1481048932", 17 | "X-GitHub-Media-Type": "github.v3; format=json", 18 | "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", 19 | "Access-Control-Allow-Origin": "*", 20 | "Content-Security-Policy": "default-src 'none'", 21 | "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", 22 | "X-Content-Type-Options": "nosniff", 23 | "X-Frame-Options": "deny", 24 | "X-XSS-Protection": "1; mode=block", 25 | "X-GitHub-Request-Id": "BC8D23FA:31E4:269B4DEE:5846F622" 26 | } 27 | } 28 | } -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubBranchDetail.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | import edu.umd.cs.findbugs.annotations.Nullable; 4 | import hudson.model.Actionable; 5 | import hudson.model.Run; 6 | import jenkins.model.details.Detail; 7 | import jenkins.model.details.DetailGroup; 8 | import jenkins.scm.api.SCMDetailGroup; 9 | import jenkins.scm.api.metadata.ObjectMetadataAction; 10 | 11 | public class GitHubBranchDetail extends Detail { 12 | public GitHubBranchDetail(Actionable object) { 13 | super(object); 14 | } 15 | 16 | @Nullable 17 | @Override 18 | public String getIconClassName() { 19 | return "symbol-git-branch-outline plugin-ionicons-api"; 20 | } 21 | 22 | @Nullable 23 | @Override 24 | public String getDisplayName() { 25 | return getObjectMetadataAction().getObjectDisplayName(); 26 | } 27 | 28 | @Override 29 | public String getLink() { 30 | return getObjectMetadataAction().getObjectUrl(); 31 | } 32 | 33 | @Override 34 | public DetailGroup getGroup() { 35 | return SCMDetailGroup.get(); 36 | } 37 | 38 | private ObjectMetadataAction getObjectMetadataAction() { 39 | Run run = (Run) getObject(); 40 | return run.getParent().getAction(ObjectMetadataAction.class); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/test/java/org/jenkinsci/plugins/github_branch_source/app_credentials/AccessInferredOwnerTest.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source.app_credentials; 2 | 3 | import static org.hamcrest.MatcherAssert.assertThat; 4 | import static org.hamcrest.Matchers.equalTo; 5 | import static org.hamcrest.Matchers.nullValue; 6 | 7 | import org.jenkinsci.plugins.github_branch_source.GitHubAppUsageContext; 8 | import org.junit.Test; 9 | 10 | public class AccessInferredOwnerTest { 11 | 12 | private final RepositoryAccessStrategy strategy = new AccessInferredOwner(); 13 | 14 | @Test 15 | public void smokes() { 16 | assertThat( 17 | strategy.forContext(GitHubAppUsageContext.builder() 18 | .inferredOwner("inferred-owner") 19 | .inferredRepository("inferred-repo") 20 | .build()), 21 | equalTo(new AccessibleRepositories("inferred-owner"))); 22 | } 23 | 24 | @Test 25 | public void requiresInferredOwner() { 26 | assertThat(strategy.forContext(GitHubAppUsageContext.builder().build()), nullValue()); 27 | assertThat( 28 | strategy.forContext(GitHubAppUsageContext.builder() 29 | .inferredRepository("inferred-repository") 30 | .build()), 31 | nullValue()); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubPullRequestDetail.java: -------------------------------------------------------------------------------- 1 | package org.jenkinsci.plugins.github_branch_source; 2 | 3 | import edu.umd.cs.findbugs.annotations.Nullable; 4 | import hudson.model.Actionable; 5 | import hudson.model.Run; 6 | import jenkins.model.details.Detail; 7 | import jenkins.model.details.DetailGroup; 8 | import jenkins.scm.api.SCMDetailGroup; 9 | import jenkins.scm.api.metadata.ObjectMetadataAction; 10 | 11 | public class GitHubPullRequestDetail extends Detail { 12 | public GitHubPullRequestDetail(Actionable object) { 13 | super(object); 14 | } 15 | 16 | @Nullable 17 | @Override 18 | public String getIconClassName() { 19 | return "symbol-git-pull-request-outline plugin-ionicons-api"; 20 | } 21 | 22 | @Nullable 23 | @Override 24 | public String getDisplayName() { 25 | return getObjectMetadataAction().getObjectDisplayName(); 26 | } 27 | 28 | @Override 29 | public String getLink() { 30 | return getObjectMetadataAction().getObjectUrl(); 31 | } 32 | 33 | @Override 34 | public DetailGroup getGroup() { 35 | return SCMDetailGroup.get(); 36 | } 37 | 38 | private ObjectMetadataAction getObjectMetadataAction() { 39 | Run run = (Run) getObject(); 40 | return run.getParent().getAction(ObjectMetadataAction.class); 41 | } 42 | } 43 | --------------------------------------------------------------------------------