Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to save settings of GHPRB #814

Open
PavelCZE opened this issue Mar 29, 2021 · 0 comments
Open

Unable to save settings of GHPRB #814

PavelCZE opened this issue Mar 29, 2021 · 0 comments
Labels

Comments

@PavelCZE
Copy link

Version report

Jenkins and plugins versions report:

Jenkins: 2.277.1
ghprb:1.42.2

Reproduction steps

  • Create a new Freestyle project (or go to settings of exiting one)
  • Set GitHub Pull Request Builder to true (or every job that is already using ghpbr)
  • Save

Results

Expected result:

Project is saved

Actual result:

Project saving fails with error message:
JSONObject["org-jenkinsci-plugins-ghprb-GhprbTrigger"] is not a JSONObject.

Log shows the following incorrect JSON structure

"org-jenkinsci-plugins-ghprb-GhprbTrigger":true,"gitHubAuthId":"abc-abc-abc-abc-abc","adminlist":"","useGitHubHooks":false,"triggerPhrase":"","onlyTriggerPhrase":false,"autoCloseFailedPullRequests":false,"skipBuildPhrase":".*\\[skip\\W+ci\\].*","displayBuildErrorsOnDownstreamBuilds":false,"cron":["H/5 * * * *","H/5 * * * *",""],"whitelist":"","orgslist":"","blackListLabels":"","whiteListLabels":"","allowMembersOfWhitelistedOrgsAsAdmin":false,"permitAll":false,"buildDescTemplate":"","blackListCommitAuthor":"","whiteListTargetBranches":{"branch":""},"blackListTargetBranches":{"branch":""},"includedRegions":"","excludedRegions":"",
@PavelCZE PavelCZE added the bug label Mar 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant