jenkinsci / sonar-gerrit-plugin

Jenkins plugin for posting SonarQube issues as Gerrit review comments
https://plugins.jenkins.io/sonar-gerrit/
MIT License
27 stars 38 forks source link

Can't change Gerrit server in Override Credentials #150

Open KayJayB33 opened 11 months ago

KayJayB33 commented 11 months ago

Jenkins and plugins versions report

Environment ```text Jenkins: 2.375.3 OS: Linux - 3.10.0-1160.25.1.el7.x86_64 Java: 17.0.5 - Azul Systems, Inc. (OpenJDK 64-Bit Server VM) --- Parameterized-Remote-Trigger:3.1.5.1 ace-editor:1.1 active-directory:2.31 analysis-model-api:10.23.1 ant:487.vd79d090d4ea_e antisamy-markup-formatter:159.v25b_c67cd35fb_ apache-httpcomponents-client-4-api:4.5.14-150.v7a_b_9d17134a_5 audit-trail:333.vb_e1b_b_0f1238c blackduck-detect:7.0.0 bootstrap4-api:4.6.0-3 bootstrap5-api:5.2.1-3 bouncycastle-api:2.27 branch-api:2.1105.v472604208c55 build-failure-analyzer:2.4.1 build-monitor-plugin:1.14-744.v35fd6fa_a_26b_2 build-name-setter:2.2.1 build-symlink:1.1 build-timeout:1.28 caffeine-api:3.1.8-133.v17b_1ff2e0599 checks-api:1.8.1 cloudbees-folder:6.758.vfd75d09eea_a_1 code-coverage-api:3.5.0 command-launcher:107.v773860566e2e commons-lang3-api:3.12.0-36.vd97de6465d5b_ commons-text-api:1.10.0-36.vc008c8fcda_7b_ conditional-buildstep:1.4.1 copyartifact:714.v28a_34f8c563f create-fingerprint:25.v0a_b_e60b_42fa_4 credentials:1224.vc23ca_a_9a_2cb_0 credentials-binding:626.v8d9034b_8ea_cc cvs:2.19.1 dark-theme:336.v02165cd8c2ee dashboard-view:2.495.v07e81500c3f2 data-tables-api:1.12.1-4 display-url-api:2.3.7 durable-task:523.va_a_22cf15d5e0 echarts-api:5.4.0-1 eiffel-core:77.0.9 external-monitor-job:207.v98a_a_37a_85525 extra-columns:1.23 font-awesome-api:6.2.1-1 forensics-api:1.17.0 gerrit-trigger:2.39.1 git:5.0.2 git-client:4.3.0 gradle:1.37.1 greenballs:1.15.1 groovy:453.vcdb_a_c5c99890 htmlpublisher:1.31 http_request:1.18 hudson-wsclean-plugin:1.0.8 instance-identity:142.v04572ca_5b_265 ionicons-api:45.vf54fca_5d2154 jackson2-api:2.15.2-350.v0c2f3f8fc595 jacoco:3.3.4 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:243.vb_b_503b_b_45537 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:1.5 jobConfigHistory:1212.vd4470d08ff12 jquery3-api:3.6.1-2 jsch:0.1.55.2 junit:1202.v79a_986785076 label-linked-jobs:6.0.1 ldap:694.vc02a_69c9787f mailer:448.v5b_97805e3767 matrix-auth:3.1.6 matrix-project:802.v8013b_40c7edc maven-plugin:3.22 metrics:4.2.13-420.vea_2f17932dd6 mina-sshd-api-common:2.10.0-69.v28e3e36d18eb_ mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_ monitoring:1.92.0 pam-auth:1.10 parameterized-trigger:2.45 pipeline-build-step:491.v1fec530da_858 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-input-step:466.v6d0a_5df34f81 pipeline-rest-api:2.32 pipeline-stage-step:305.ve96d0205c1c6 plain-credentials:143.v1b_df8b_d3b_e48 plot:2.1.12 plugin-util-api:2.20.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 powershell:2.0 prism-api:1.29.0-2 prometheus:2.1.2 promoted-builds:892.vd6219fc0a_efb python:1.3 rebuild:320.v5a_0933a_e7d61 resource-disposer:0.23 run-condition:1.5 scm-api:676.v886669a_199a_a_ script-security:1269.v639888f5e366 snakeyaml-api:1.33-95.va_b_a_e3e47b_fa_4 sonar:2.15 sonar-gerrit:385.v890738eeff15 ssh:2.6.1 ssh-agent:333.v878b_53c89511 ssh-credentials:305.v8f4381501156 ssh-slaves:2.877.v365f5eb_a_b_eec sshd:3.236.ved5e1b_cb_50b_2 structs:324.va_f5d6774f3a_d support-core:1354.v0d622276ca_de testng-plugin:789.vfc860d1de85a_ text-file-operations:1.3.2 text-finder:1.25 text-finder-run-condition:6.vdf94e6f8d2c3 theme-manager:193.vcef22f6c5f2b_ token-macro:359.vb_cde11682e0c trilead-api:2.84.v72119de229b_7 variant:59.vf075fe829ccb warnings-ng:9.23.1 windows-slaves:1.8.1 workflow-api:1251.vd4889a_b_0a_065 workflow-basic-steps:1042.ve7b_140c4a_e0c workflow-cps:3673.v5b_dd74276262 workflow-durable-task-step:1289.v4d3e7b_01546b_ workflow-job:1316.vd2290d3341a_f workflow-multibranch:716.vc692a_e52371b_ workflow-scm-step:408.v7d5b_135a_b_d49 workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:839.v35e2736cfd5c ws-cleanup:0.45 ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Jenkins Master - OpenSUSE Jenkins Agent - Windows Sever 2016

Reproduction steps

  1. Add "Post SonarQube issues as Gerrit comments" Post-Build Action step
  2. Enter Gerrit Settings
  3. Override credentials and change Gerrit Server
  4. Save and leave job configuration page
  5. Enter job configuration page once again and Gerrit Server is unchanged

Expected Results

Gerrit server should be changed to one that was saved.

Actual Results

Gerrit server remains unchanged after save.

Anything else?

Also help for Gerrit server option returns "ERROR: Failed to load help file" image